24#ifndef MYSQL_SERVICE_THD_WAIT_INCLUDED
25#define MYSQL_SERVICE_THD_WAIT_INCLUDED
58#define MYSQL_THD THD *
96#ifdef MYSQL_DYNAMIC_PLUGIN
98#define thd_wait_begin(_THD, _WAIT_TYPE) \
99 thd_wait_service->thd_wait_begin_func(_THD, _WAIT_TYPE)
100#define thd_wait_end(_THD) thd_wait_service->thd_wait_end_func(_THD)
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
wait_type
Definition: socket_constants.h:86
void thd_wait_end(MYSQL_THD thd)
Interface for MySQL Server, plugins and storage engines to report when they waking up from a sleep/st...
Definition: sql_thd_api.cc:667
struct thd_wait_service_st * thd_wait_service
void thd_wait_begin(MYSQL_THD thd, int wait_type)
Interface for MySQL Server, plugins and storage engines to report when they are going to sleep/stall.
Definition: sql_thd_api.cc:649
_thd_wait_type_e
Definition: service_thd_wait.h:77
@ THD_WAIT_SYNC
Definition: service_thd_wait.h:87
@ THD_WAIT_DISKIO
Definition: service_thd_wait.h:79
@ THD_WAIT_GLOBAL_LOCK
Definition: service_thd_wait.h:81
@ THD_WAIT_META_DATA_LOCK
Definition: service_thd_wait.h:82
@ THD_WAIT_TABLE_LOCK
Definition: service_thd_wait.h:83
@ THD_WAIT_BINLOG
Definition: service_thd_wait.h:85
@ THD_WAIT_SLEEP
Definition: service_thd_wait.h:78
@ THD_WAIT_LAST
Definition: service_thd_wait.h:88
@ THD_WAIT_ROW_LOCK
Definition: service_thd_wait.h:80
@ THD_WAIT_GROUP_COMMIT
Definition: service_thd_wait.h:86
@ THD_WAIT_USER_LOCK
Definition: service_thd_wait.h:84
#define MYSQL_THD
Definition: service_thd_wait.h:58
enum _thd_wait_type_e thd_wait_type
Definition: service_thd_wait.h:91
void(* thd_wait_begin_func)(MYSQL_THD, int)
Definition: service_thd_wait.h:92
void(* thd_wait_end_func)(MYSQL_THD)
Definition: service_thd_wait.h:93