1 #ifndef _EVENT_QUEUE_H_
2 #define _EVENT_QUEUE_H_
28 #ifdef HAVE_PSI_INTERFACE
29 extern PSI_mutex_key key_LOCK_event_queue;
30 extern PSI_cond_key key_COND_queue_state;
34 #include "sql_string.h"
70 drop_schema_events(THD *thd,
LEX_STRING schema);
73 recalculate_activation_times(THD *thd);
76 get_top_for_execution_if_time(THD *thd,
81 dump_internal_status();
91 lock_data(
const char *func, uint line);
94 unlock_data(
const char *func, uint line);
98 const char *src_func,
const char *src_file, uint src_line);
105 drop_matching_events(THD *thd,
LEX_STRING pattern,
110 dbug_dump_queue(time_t now);
119 my_time_t next_activation_at;
121 uint mutex_last_locked_at_line;
122 uint mutex_last_unlocked_at_line;
123 uint mutex_last_attempted_lock_at_line;
124 const char* mutex_last_locked_in_func;
125 const char* mutex_last_unlocked_in_func;
126 const char* mutex_last_attempted_lock_in_func;
127 bool mutex_queue_data_locked;
128 bool mutex_queue_data_attempting_lock;
129 bool waiting_on_cond;