Abstract class used to wrap condition for various implementations.
More...
#include <my_xp_cond.h>
Abstract class used to wrap condition for various implementations.
A typical use case of cond is:
cond->
init(cond_PSI_key);
Definition: my_xp_cond.h:136
Abstract class used to wrap condition for various implementations.
Definition: my_xp_cond.h:47
virtual int init(PSI_cond_key key)=0
Initialize cond.
virtual int signal()=0
Signal cond.
◆ ~My_xp_cond()
virtual My_xp_cond::~My_xp_cond |
( |
| ) |
|
|
virtualdefault |
◆ broadcast()
virtual int My_xp_cond::broadcast |
( |
| ) |
|
|
pure virtual |
◆ destroy()
virtual int My_xp_cond::destroy |
( |
| ) |
|
|
pure virtual |
◆ get_native_cond()
◆ init()
Initialize cond.
- Parameters
-
key | cond instrumentation key |
- Returns
- success status
Implemented in My_xp_cond_server.
◆ signal()
virtual int My_xp_cond::signal |
( |
| ) |
|
|
pure virtual |
◆ timed_wait()
virtual int My_xp_cond::timed_wait |
( |
mysql_mutex_t * |
mutex, |
|
|
const struct timespec * |
abstime |
|
) |
| |
|
pure virtual |
Wait for cond to be signaled during some time before unlocking mutex.
- Parameters
-
mutex | mutex to unlock |
abstime | time to wait |
- Returns
- success status
Implemented in My_xp_cond_server.
◆ wait()
Wait for cond to be signaled to unlock mutex.
- Parameters
-
- Returns
- success status
Implemented in My_xp_cond_server.
The documentation for this class was generated from the following file:
- plugin/group_replication/libmysqlgcs/include/mysql/gcs/xplatform/my_xp_cond.h