Skip to content

File lock_table.h

FileList > cubrid > src > transaction > lock_table.h

Go to the source code of this file

  • #include <assert.h>

Public Types

Type Name
enum LOCK
enum LOCK_COMPATIBILITY

Public Attributes

Type Name
const LOCK_COMPATIBILITY lock_Comp
const LOCK lock_Conv

Public Functions

Type Name
LOCK_COMPATIBILITY lock_compat (LOCK requested, LOCK current)
LOCK lock_conv (LOCK requested, LOCK current)
const char * lock_to_lockmode_string (LOCK lock)

Macros

Type Name
define LOCK_MODE_STR_FMT "%\*s"
define LOCK_MODE_STR_MAX_LENGTH 10 /\* SCH\_S\_LOCK, SCH\_M\_LOCK \*/

Public Types Documentation

enum LOCK

enum LOCK {
    NA_LOCK = 0,
    INCON_NON_TWO_PHASE_LOCK = 1,
    NULL_LOCK = 2,
    SCH_S_LOCK = 3,
    IS_LOCK = 4,
    S_LOCK = 5,
    IX_LOCK = 6,
    BU_LOCK = 7,
    SIX_LOCK = 8,
    U_LOCK = 9,
    X_LOCK = 10,
    SCH_M_LOCK = 11,
    LOCK_COUNT
};

enum LOCK_COMPATIBILITY

enum LOCK_COMPATIBILITY {
    LOCK_COMPAT_NO = 0,
    LOCK_COMPAT_YES,
    LOCK_COMPAT_UNKNOWN
};

Public Attributes Documentation

variable lock_Comp

const LOCK_COMPATIBILITY lock_Comp[LOCK_COUNT][LOCK_COUNT];

variable lock_Conv

const LOCK lock_Conv[LOCK_COUNT][LOCK_COUNT];

Public Functions Documentation

function lock_compat

inline LOCK_COMPATIBILITY lock_compat (
    LOCK requested,
    LOCK current
) 

function lock_conv

inline LOCK lock_conv (
    LOCK requested,
    LOCK current
) 

function lock_to_lockmode_string

inline const  char * lock_to_lockmode_string (
    LOCK lock
) 

Macro Definition Documentation

define LOCK_MODE_STR_FMT

#define LOCK_MODE_STR_FMT `"%*s"`

define LOCK_MODE_STR_MAX_LENGTH

#define LOCK_MODE_STR_MAX_LENGTH `10    /* SCH_S_LOCK , SCH_M_LOCK */`


The documentation for this class was generated from the following file cubrid/src/transaction/lock_table.h