MySQL  8.0.19
Source Code Documentation
Delayed_initialization_thread Class Reference

#include <delayed_plugin_initialization.h>

Public Member Functions

 Delayed_initialization_thread ()
 
 ~Delayed_initialization_thread ()
 The class destructor. More...
 
int initialization_thread_handler ()
 The thread handler. More...
 
int launch_initialization_thread ()
 Initialize a thread where the plugin services will be initialized. More...
 
void signal_thread_ready ()
 Signals the plugin initialization thread that the server is ready. More...
 
void wait_for_thread_end ()
 Wait for the initialization thread to do its job. More...
 
void signal_read_mode_ready ()
 Signal that the read mode is set on the server. More...
 
void wait_for_read_mode ()
 Wait for the read mode to be set by the thread process. More...
 

Private Attributes

thread_state delayed_thd_state
 
bool is_server_ready
 
bool is_super_read_only_set
 
my_thread_handle delayed_init_pthd
 
mysql_mutex_t run_lock
 
mysql_cond_t run_cond
 
mysql_mutex_t server_ready_lock
 
mysql_cond_t server_ready_cond
 

Constructor & Destructor Documentation

◆ Delayed_initialization_thread()

Delayed_initialization_thread::Delayed_initialization_thread ( )

◆ ~Delayed_initialization_thread()

Delayed_initialization_thread::~Delayed_initialization_thread ( )

The class destructor.

Member Function Documentation

◆ initialization_thread_handler()

int Delayed_initialization_thread::initialization_thread_handler ( )

The thread handler.

Returns
Return values
0OK
!=0Error

◆ launch_initialization_thread()

int Delayed_initialization_thread::launch_initialization_thread ( )

Initialize a thread where the plugin services will be initialized.

Returns
the operation status
Return values
0OK
!=0Error

◆ signal_read_mode_ready()

void Delayed_initialization_thread::signal_read_mode_ready ( )

Signal that the read mode is set on the server.

◆ signal_thread_ready()

void Delayed_initialization_thread::signal_thread_ready ( )

Signals the plugin initialization thread that the server is ready.

◆ wait_for_read_mode()

void Delayed_initialization_thread::wait_for_read_mode ( )

Wait for the read mode to be set by the thread process.

◆ wait_for_thread_end()

void Delayed_initialization_thread::wait_for_thread_end ( )

Wait for the initialization thread to do its job.

Member Data Documentation

◆ delayed_init_pthd

my_thread_handle Delayed_initialization_thread::delayed_init_pthd
private

◆ delayed_thd_state

thread_state Delayed_initialization_thread::delayed_thd_state
private

◆ is_server_ready

bool Delayed_initialization_thread::is_server_ready
private

◆ is_super_read_only_set

bool Delayed_initialization_thread::is_super_read_only_set
private

◆ run_cond

mysql_cond_t Delayed_initialization_thread::run_cond
private

◆ run_lock

mysql_mutex_t Delayed_initialization_thread::run_lock
private

◆ server_ready_cond

mysql_cond_t Delayed_initialization_thread::server_ready_cond
private

◆ server_ready_lock

mysql_mutex_t Delayed_initialization_thread::server_ready_lock
private

The documentation for this class was generated from the following files: