24#ifndef MY_XP_COND_INCLUDED
25#define MY_XP_COND_INCLUDED
76 const struct timespec *abstime) = 0;
114#ifndef XCOM_STANDALONE
133#ifndef XCOM_STANDALONE
Definition: my_xp_cond.h:136
My_xp_cond_impl()=default
~My_xp_cond_impl() override=default
Definition: my_xp_cond.h:115
My_xp_cond_server()
Definition: my_xp_cond.cc:27
int broadcast() override
Broadcast cond.
Definition: my_xp_cond.cc:49
int wait(mysql_mutex_t *mutex) override
Wait for cond to be signaled to unlock mutex.
Definition: my_xp_cond.cc:43
mysql_cond_t * m_cond
Definition: my_xp_cond.h:129
int init(PSI_cond_key key) override
Initialize cond.
Definition: my_xp_cond.cc:32
int signal() override
Signal cond.
Definition: my_xp_cond.cc:47
~My_xp_cond_server() override
Definition: my_xp_cond.cc:30
mysql_cond_t * get_native_cond() override
Get reference to native cond.
Definition: my_xp_cond.cc:51
int timed_wait(mysql_mutex_t *mutex, const struct timespec *abstime) override
Wait for cond to be signaled during some time before unlocking mutex.
Definition: my_xp_cond.cc:38
int destroy() override
Destroy cond.
Definition: my_xp_cond.cc:36
Abstract class used to wrap condition for various implementations.
Definition: my_xp_cond.h:47
virtual ~My_xp_cond()=default
virtual int wait(mysql_mutex_t *mutex)=0
Wait for cond to be signaled to unlock mutex.
virtual int init(PSI_cond_key key)=0
Initialize cond.
virtual int timed_wait(mysql_mutex_t *mutex, const struct timespec *abstime)=0
Wait for cond to be signaled during some time before unlocking mutex.
virtual int destroy()=0
Destroy cond.
virtual int broadcast()=0
Broadcast cond.
virtual mysql_cond_t * get_native_cond()=0
Get reference to native cond.
virtual int signal()=0
Signal cond.
unsigned int PSI_cond_key
Instrumented cond key.
Definition: psi_cond_bits.h:44
Instrumentation helpers for conditions.
required string key
Definition: replication_asynchronous_connection_failover.proto:60
An instrumented cond structure.
Definition: mysql_cond_bits.h:50
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50