MySQL 8.0.39
Source Code Documentation
event_scheduler.cc File Reference
#include "sql/event_scheduler.h"
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "lex_string.h"
#include "m_ctype.h"
#include "m_string.h"
#include "my_command.h"
#include "my_dbug.h"
#include "my_loglevel.h"
#include "my_psi_config.h"
#include "my_sys.h"
#include "my_thread.h"
#include "mysql/components/services/bits/psi_statement_bits.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/psi/mysql_cond.h"
#include "mysql/psi/mysql_mutex.h"
#include "mysql/psi/mysql_statement.h"
#include "mysql/psi/mysql_thread.h"
#include "mysql/service_mysql_alloc.h"
#include "mysql/thread_type.h"
#include "mysql_com.h"
#include "mysqld_error.h"
#include "sql/auth/auth_acls.h"
#include "sql/auth/sql_security_ctx.h"
#include "sql/current_thd.h"
#include "sql/dd/dd_schema.h"
#include "sql/dd/types/event.h"
#include "sql/event_data_objects.h"
#include "sql/event_db_repository.h"
#include "sql/event_queue.h"
#include "sql/events.h"
#include "sql/log.h"
#include "sql/mdl.h"
#include "sql/mysqld.h"
#include "sql/mysqld_thd_manager.h"
#include "sql/protocol_classic.h"
#include "sql/psi_memory_key.h"
#include "sql/query_options.h"
#include "sql/sql_class.h"
#include "sql/sql_const.h"
#include "sql/sql_error.h"
#include "sql/system_variables.h"
#include "sql_string.h"
#include "thr_mutex.h"

Classes

struct  scheduler_param
 
class  Is_worker
 This class implements callback for do_for_all_thd(). More...
 

Macros

#define LOCK_DATA()   lock_data(__func__, __LINE__)
 
#define UNLOCK_DATA()   unlock_data(__func__, __LINE__)
 
#define COND_STATE_WAIT(mythd, abstime, stage)    cond_wait(mythd, abstime, stage, __func__, __FILE__, __LINE__)
 

Functions

bool post_init_event_thread (THD *thd)
 
void deinit_event_thread (THD *thd)
 
void pre_init_event_thread (THD *thd)
 
static void * event_scheduler_thread (void *arg)
 
static void * event_worker_thread (void *arg)
 Function that executes an event in a child thread. More...
 

Variables

my_thread_attr_t connection_attrib
 
static const LEX_CSTRING scheduler_states_names []