MySQL 8.0.40
Source Code Documentation
Collaboration diagram for Table Instrumentation (API):

Macros

#define MYSQL_TABLE_WAIT_VARIABLES(LOCKER, STATE)
 Instrumentation helper for table waits. More...
 
#define MYSQL_START_TABLE_LOCK_WAIT(LOCKER, STATE, PSI, OP, FLAGS)
 Instrumentation helper for table lock waits. More...
 
#define MYSQL_END_TABLE_LOCK_WAIT(LOCKER)    inline_mysql_end_table_lock_wait(LOCKER)
 Instrumentation helper for table lock waits. More...
 
#define MYSQL_UNLOCK_TABLE(T)   inline_mysql_unlock_table(T)
 

Functions

static struct PSI_table_lockerinline_mysql_start_table_lock_wait (PSI_table_locker_state *state, struct PSI_table *psi, enum PSI_table_lock_operation op, ulong flags, const char *src_file, int src_line)
 Instrumentation calls for MYSQL_START_TABLE_LOCK_WAIT. More...
 
static void inline_mysql_end_table_lock_wait (struct PSI_table_locker *locker)
 Instrumentation calls for MYSQL_END_TABLE_LOCK_WAIT. More...
 
static void inline_mysql_unlock_table (struct PSI_table *table)
 

Detailed Description

Macro Definition Documentation

◆ MYSQL_END_TABLE_LOCK_WAIT

#define MYSQL_END_TABLE_LOCK_WAIT (   LOCKER)     inline_mysql_end_table_lock_wait(LOCKER)

Instrumentation helper for table lock waits.

This instrumentation marks the end of a wait event.

Parameters
LOCKERthe locker
See also
MYSQL_START_TABLE_LOCK_WAIT.

◆ MYSQL_START_TABLE_LOCK_WAIT

#define MYSQL_START_TABLE_LOCK_WAIT (   LOCKER,
  STATE,
  PSI,
  OP,
  FLAGS 
)
Value:
LOCKER = inline_mysql_start_table_lock_wait(STATE, PSI, OP, FLAGS, __FILE__, \
__LINE__)
static struct PSI_table_locker * inline_mysql_start_table_lock_wait(PSI_table_locker_state *state, struct PSI_table *psi, enum PSI_table_lock_operation op, ulong flags, const char *src_file, int src_line)
Instrumentation calls for MYSQL_START_TABLE_LOCK_WAIT.
Definition: mysql_table.h:119

Instrumentation helper for table lock waits.

This instrumentation marks the start of a wait event.

Parameters
LOCKERthe locker
STATEthe locker state
PSIthe instrumented table
OPthe table operation to be performed
FLAGSper table operation flags.
See also
MYSQL_END_TABLE_LOCK_WAIT.

◆ MYSQL_TABLE_WAIT_VARIABLES

#define MYSQL_TABLE_WAIT_VARIABLES (   LOCKER,
  STATE 
)
Value:
struct PSI_table_locker *LOCKER; \
PSI_table_locker_state STATE;
struct PSI_table_locker PSI_table_locker
Definition: psi_table_bits.h:43

Instrumentation helper for table waits.

This instrumentation declares local variables. Do not use a ';' after this macro

Parameters
LOCKERthe locker
STATEthe locker state
See also
MYSQL_START_TABLE_IO_WAIT.
MYSQL_END_TABLE_IO_WAIT.
MYSQL_START_TABLE_LOCK_WAIT.
MYSQL_END_TABLE_LOCK_WAIT.

◆ MYSQL_UNLOCK_TABLE

#define MYSQL_UNLOCK_TABLE (   T)    inline_mysql_unlock_table(T)

Function Documentation

◆ inline_mysql_end_table_lock_wait()

static void inline_mysql_end_table_lock_wait ( struct PSI_table_locker locker)
inlinestatic

Instrumentation calls for MYSQL_END_TABLE_LOCK_WAIT.

See also
MYSQL_START_TABLE_LOCK_WAIT.

◆ inline_mysql_start_table_lock_wait()

static struct PSI_table_locker * inline_mysql_start_table_lock_wait ( PSI_table_locker_state state,
struct PSI_table psi,
enum PSI_table_lock_operation  op,
ulong  flags,
const char *  src_file,
int  src_line 
)
inlinestatic

Instrumentation calls for MYSQL_START_TABLE_LOCK_WAIT.

See also
MYSQL_END_TABLE_LOCK_WAIT.

◆ inline_mysql_unlock_table()

static void inline_mysql_unlock_table ( struct PSI_table table)
inlinestatic