MySQL 9.1.0
Source Code Documentation
|
A class to register observers for channel state events. More...
#include <channel_observation_manager.h>
Public Member Functions | |
Channel_observation_manager () | |
Initialize the class. More... | |
~Channel_observation_manager () | |
Destructor. More... | |
void | register_channel_observer (Channel_state_observer *observer) |
A method to register observers to the events that come from the server. More... | |
void | unregister_channel_observer (Channel_state_observer *observer) |
A method to remove a channel state observer. More... | |
std::list< Channel_state_observer * > & | get_channel_state_observers () |
Get all registered observers. More... | |
void | read_lock_channel_list () |
Locks the observer list for reads. More... | |
void | write_lock_channel_list () |
Locks the observer list for writes. More... | |
void | unlock_channel_list () |
Unlocks the observer list. More... | |
Private Attributes | |
std::list< Channel_state_observer * > | channel_observers |
list of channel state observer More... | |
Checkable_rwlock * | channel_list_lock |
A class to register observers for channel state events.
Channel_observation_manager::Channel_observation_manager | ( | ) |
Initialize the class.
Channel_observation_manager::~Channel_observation_manager | ( | ) |
Destructor.
Deletes all the channel state observers.
std::list< Channel_state_observer * > & Channel_observation_manager::get_channel_state_observers | ( | ) |
Get all registered observers.
void Channel_observation_manager::read_lock_channel_list | ( | ) |
Locks the observer list for reads.
void Channel_observation_manager::register_channel_observer | ( | Channel_state_observer * | observer | ) |
A method to register observers to the events that come from the server.
observer | A channel state observer implementation. |
void Channel_observation_manager::unlock_channel_list | ( | ) |
Unlocks the observer list.
void Channel_observation_manager::unregister_channel_observer | ( | Channel_state_observer * | observer | ) |
A method to remove a channel state observer.
observer | A channel state observer implementation. |
void Channel_observation_manager::write_lock_channel_list | ( | ) |
Locks the observer list for writes.
|
private |
|
private |
list of channel state observer