MySQL 8.3.0
Source Code Documentation
service_thread_scheduler.h File Reference

Go to the source code of this file.

Classes

struct  my_thread_scheduler_service
 

Functions

int my_connection_handler_set (struct Connection_handler_functions *chf, struct THD_event_functions *tef)
 Instantiates Plugin_connection_handler based on the supplied Conection_handler_functions and sets it as the current connection handler. More...
 
int my_connection_handler_reset ()
 Destroys the current connection handler and restores the previous. More...
 

Variables

struct my_thread_scheduler_servicemy_thread_scheduler_service
 

Function Documentation

◆ my_connection_handler_reset()

int my_connection_handler_reset ( )

Destroys the current connection handler and restores the previous.

Should only be called after calling my_connection_handler_set().

Return values
1failure
0success

◆ my_connection_handler_set()

int my_connection_handler_set ( struct Connection_handler_functions chf,
struct THD_event_functions tef 
)

Instantiates Plugin_connection_handler based on the supplied Conection_handler_functions and sets it as the current connection handler.

Also sets the THD_event_functions functions which will be called by the server when e.g. beginning a wait.

Remembers the existing connection handler so that it can be restored later.

Parameters
chfstruct with functions to be called when e.g. handling new clients.
tefstruct with functions to be called when events (e.g. lock wait) happens.
Note
Both pointers (i.e. not the structs themselves) will be copied, so the structs must not disappear.
We don't support dynamically loading more than one connection handler.
Return values
1failure
0success

Variable Documentation

◆ my_thread_scheduler_service