MySQL 8.0.39
Source Code Documentation
|
Handles the deliver of recv service messages to subscribed modules. More...
#include <message_service.h>
Public Member Functions | |
Message_service_handler () | |
Create a message service handler to deliver messages to recv subscribers. More... | |
virtual | ~Message_service_handler () |
int | initialize () |
Initialize thread that will deliver messages. More... | |
void | dispatcher () |
Main loop that checks message availability. More... | |
int | terminate () |
Terminate delivering message thread. More... | |
void | add (Group_service_message *message) |
Add to queue a new message to be deliver to recv service subscribers. More... | |
bool | notify_message_service_recv (Group_service_message *service_message) |
It will notify recv subscribers with a service message. More... | |
Private Attributes | |
bool | m_aborted |
Thread was terminated. More... | |
my_thread_handle | m_message_service_pthd |
The current phase. More... | |
mysql_mutex_t | m_message_service_run_lock |
The thread lock to control access. More... | |
mysql_cond_t | m_message_service_run_cond |
The thread signal mechanism to be terminated. More... | |
thread_state | m_message_service_thd_state |
The state of the thread. More... | |
Abortable_synchronized_queue< Group_service_message * > * | m_incoming |
Queue with service message to be delivered. More... | |
Handles the deliver of recv service messages to subscribed modules.
Message_service_handler::Message_service_handler | ( | ) |
Create a message service handler to deliver messages to recv subscribers.
|
virtual |
void Message_service_handler::add | ( | Group_service_message * | message | ) |
Add to queue a new message to be deliver to recv service subscribers.
[in] | message | message to be delivered |
void Message_service_handler::dispatcher | ( | ) |
Main loop that checks message availability.
int Message_service_handler::initialize | ( | ) |
Initialize thread that will deliver messages.
bool Message_service_handler::notify_message_service_recv | ( | Group_service_message * | service_message | ) |
It will notify recv subscribers with a service message.
[in] | service_message | message to process |
int Message_service_handler::terminate | ( | ) |
Terminate delivering message thread.
|
private |
Thread was terminated.
|
private |
Queue with service message to be delivered.
|
private |
The current phase.
|
private |
The thread signal mechanism to be terminated.
|
private |
The thread lock to control access.
|
private |
The state of the thread.