24#ifndef MYSQL_SERVICE_THD_WAIT_INCLUDED
25#define MYSQL_SERVICE_THD_WAIT_INCLUDED
59#error "Not compiling as C++"
101 return "Not waiting";
104 return "Waiting for sleep";
107 return "Waiting for Disk IO";
110 return "Waiting for row lock";
113 return "Waiting for global lock";
116 return "Waiting for metadata lock";
119 return "Waiting for table lock";
122 return "Waiting for user lock";
125 return "Waiting for binlog";
128 return "Waiting for group commit";
131 return "Waiting for fsync";
134 return "Waiting for transaction delay";
137 return "<Unused LAST marker value>";
140 return "<Invalid THD_WAIT value>";
148#ifdef MYSQL_DYNAMIC_PLUGIN
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
wait_type
Definition: socket_constants.h:86
void thd_wait_end(THD *thd)
THD_wait_type
Definition: service_thd_wait.h:82
@ THD_WAIT_SYNC
Definition: service_thd_wait.h:93
@ THD_WAIT_DISKIO
Definition: service_thd_wait.h:85
@ THD_WAIT_GLOBAL_LOCK
Definition: service_thd_wait.h:87
@ THD_WAIT_META_DATA_LOCK
Definition: service_thd_wait.h:88
@ THD_WAIT_NONE
Definition: service_thd_wait.h:83
@ THD_WAIT_TABLE_LOCK
Definition: service_thd_wait.h:89
@ THD_WAIT_BINLOG
Definition: service_thd_wait.h:91
@ THD_WAIT_SLEEP
Definition: service_thd_wait.h:84
@ THD_WAIT_LAST
Definition: service_thd_wait.h:95
@ THD_WAIT_TRX_DELAY
Definition: service_thd_wait.h:94
@ THD_WAIT_ROW_LOCK
Definition: service_thd_wait.h:86
@ THD_WAIT_GROUP_COMMIT
Definition: service_thd_wait.h:92
@ THD_WAIT_USER_LOCK
Definition: service_thd_wait.h:90
const char * THD_wait_type_str(THD_wait_type twt)
Definition: service_thd_wait.h:98
void thd_wait_begin(THD *thd, int wait_type)
Definition: service_thd_wait.h:143
void(* thd_wait_end_func)(THD *)
Definition: service_thd_wait.h:145
void(* thd_wait_begin_func)(THD *, int)
Definition: service_thd_wait.h:144