MySQL 8.0.40
Source Code Documentation
My_xp_cond_server Class Reference

#include <my_xp_cond.h>

Inheritance diagram for My_xp_cond_server:
[legend]

Public Member Functions

 My_xp_cond_server ()
 
 ~My_xp_cond_server () override
 
int init (PSI_cond_key key) override
 Initialize cond. More...
 
int destroy () override
 Destroy cond. More...
 
int timed_wait (mysql_mutex_t *mutex, const struct timespec *abstime) override
 Wait for cond to be signaled during some time before unlocking mutex. More...
 
int wait (mysql_mutex_t *mutex) override
 Wait for cond to be signaled to unlock mutex. More...
 
int signal () override
 Signal cond. More...
 
int broadcast () override
 Broadcast cond. More...
 
mysql_cond_tget_native_cond () override
 Get reference to native cond. More...
 
- Public Member Functions inherited from My_xp_cond
virtual ~My_xp_cond ()=default
 

Protected Attributes

mysql_cond_tm_cond
 

Constructor & Destructor Documentation

◆ My_xp_cond_server()

My_xp_cond_server::My_xp_cond_server ( )
explicit

◆ ~My_xp_cond_server()

My_xp_cond_server::~My_xp_cond_server ( )
override

Member Function Documentation

◆ broadcast()

int My_xp_cond_server::broadcast ( )
overridevirtual

Broadcast cond.

Returns
success status

Implements My_xp_cond.

◆ destroy()

int My_xp_cond_server::destroy ( )
overridevirtual

Destroy cond.

Returns
success status

Implements My_xp_cond.

◆ get_native_cond()

mysql_cond_t * My_xp_cond_server::get_native_cond ( )
overridevirtual

Get reference to native cond.

Returns
native cond

Implements My_xp_cond.

◆ init()

int My_xp_cond_server::init ( PSI_cond_key  key)
overridevirtual

Initialize cond.

Parameters
keycond instrumentation key
Returns
success status

Implements My_xp_cond.

◆ signal()

int My_xp_cond_server::signal ( )
overridevirtual

Signal cond.

Returns
success status

Implements My_xp_cond.

◆ timed_wait()

int My_xp_cond_server::timed_wait ( mysql_mutex_t mutex,
const struct timespec *  abstime 
)
overridevirtual

Wait for cond to be signaled during some time before unlocking mutex.

Parameters
mutexmutex to unlock
abstimetime to wait
Returns
success status

Implements My_xp_cond.

◆ wait()

int My_xp_cond_server::wait ( mysql_mutex_t mutex)
overridevirtual

Wait for cond to be signaled to unlock mutex.

Parameters
mutexmutex to unlock
Returns
success status

Implements My_xp_cond.

Member Data Documentation

◆ m_cond

mysql_cond_t* My_xp_cond_server::m_cond
protected

The documentation for this class was generated from the following files: