MySQL 8.4.2
Source Code Documentation
|
A generic single thread executor. More...
#include <mysql_thread.h>
Public Member Functions | |
Mysql_thread (PSI_thread_key thread_key, PSI_mutex_key run_mutex_key, PSI_cond_key run_cond_key, PSI_mutex_key dispatcher_mutex_key, PSI_cond_key dispatcher_cond_key) | |
Mysql_thread constructor. More... | |
virtual | ~Mysql_thread () |
bool | initialize () |
Initialize the thread. More... | |
bool | terminate () |
Terminate the thread. More... | |
void | dispatcher () |
Thread worker method. More... | |
bool | trigger (Mysql_thread_task *task) |
Trigger a task to run synchronously. More... | |
A generic single thread executor.
Mysql_thread::Mysql_thread | ( | PSI_thread_key | thread_key, |
PSI_mutex_key | run_mutex_key, | ||
PSI_cond_key | run_cond_key, | ||
PSI_mutex_key | dispatcher_mutex_key, | ||
PSI_cond_key | dispatcher_cond_key | ||
) |
Mysql_thread constructor.
|
virtual |
void Mysql_thread::dispatcher | ( | ) |
Thread worker method.
bool Mysql_thread::initialize | ( | ) |
Initialize the thread.
false | Successful |
true | Error |
bool Mysql_thread::terminate | ( | ) |
Terminate the thread.
false | Successful |
true | Error |
bool Mysql_thread::trigger | ( | Mysql_thread_task * | task | ) |
Trigger a task to run synchronously.
[in] | task | task to run |
false | Successful |
true | Error |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |