1 #ifndef SCHEDULER_INCLUDED
2 #define SCHEDULER_INCLUDED
31 bool (*init_new_connection_thread)(void);
32 void (*add_connection)(THD *thd);
33 void (*thd_wait_begin)(THD *thd,
int wait_type);
34 void (*thd_wait_end)(THD *thd);
35 void (*post_kill_notification)(THD *thd);
36 bool (*end_thread)(THD *thd,
bool cache_thread);
63 SCHEDULER_ONE_THREAD_PER_CONNECTION=0,
68 void one_thread_per_connection_scheduler();
69 void one_thread_scheduler();
95 void *thd_get_scheduler_data(THD *thd);
96 void thd_set_scheduler_data(THD *thd,
void *data);
97 PSI_thread* thd_get_psi(THD *thd);
98 void thd_set_psi(THD *thd, PSI_thread *psi);