MySQL 9.1.0
Source Code Documentation
lock0types.h File Reference

The transaction lock system global types. More...

#include "univ.i"
#include "trx0types.h"

Go to the source code of this file.

Classes

struct  lock_guid_t
 Used to represent locks requests uniquely over time. More...
 

Macros

#define lock_t   ib_lock_t
 

Typedefs

typedef uint32_t trx_schedule_weight_t
 

Enumerations

enum  select_mode { SELECT_ORDINARY , SELECT_SKIP_LOCKED , SELECT_NOWAIT }
 
enum  lock_mode {
  LOCK_IS = 0 , LOCK_IX , LOCK_S , LOCK_X ,
  LOCK_AUTO_INC , LOCK_NONE , LOCK_NUM = LOCK_NONE , LOCK_NONE_UNSET = 255
}
 

Functions

const char * lock_mode_string (enum lock_mode mode)
 Convert the given enum value into string. More...
 
typedef UT_LIST_BASE_NODE_T_EXTERN (lock_t, trx_locks) trx_lock_list_t
 

Detailed Description

The transaction lock system global types.

Created 5/7/1996 Heikki Tuuri

Macro Definition Documentation

◆ lock_t

#define lock_t   ib_lock_t

Typedef Documentation

◆ trx_schedule_weight_t

typedef uint32_t trx_schedule_weight_t

Enumeration Type Documentation

◆ lock_mode

enum lock_mode
Enumerator
LOCK_IS 
LOCK_IX 
LOCK_S 
LOCK_X 
LOCK_AUTO_INC 
LOCK_NONE 
LOCK_NUM 
LOCK_NONE_UNSET 

◆ select_mode

Enumerator
SELECT_ORDINARY 
SELECT_SKIP_LOCKED 
SELECT_NOWAIT 

Function Documentation

◆ lock_mode_string()

const char * lock_mode_string ( enum lock_mode  mode)
inline

Convert the given enum value into string.

Parameters
[in]modethe lock mode
Returns
human readable string of the given enum value

◆ UT_LIST_BASE_NODE_T_EXTERN()

typedef UT_LIST_BASE_NODE_T_EXTERN ( lock_t  ,
trx_locks   
)