16 #ifndef MYSQL_SERVICE_THD_WAIT_INCLUDED
17 #define MYSQL_SERVICE_THD_WAIT_INCLUDED
66 typedef enum _thd_wait_type_e {
70 THD_WAIT_GLOBAL_LOCK= 4,
71 THD_WAIT_META_DATA_LOCK= 5,
72 THD_WAIT_TABLE_LOCK= 6,
73 THD_WAIT_USER_LOCK= 7,
75 THD_WAIT_GROUP_COMMIT= 9,
81 void (*thd_wait_begin_func)(MYSQL_THD, int);
82 void (*thd_wait_end_func)(MYSQL_THD);
85 #ifdef MYSQL_DYNAMIC_PLUGIN
87 #define thd_wait_begin(_THD, _WAIT_TYPE) \
88 thd_wait_service->thd_wait_begin_func(_THD, _WAIT_TYPE)
89 #define thd_wait_end(_THD) thd_wait_service->thd_wait_end_func(_THD)
94 void thd_wait_end(MYSQL_THD thd);