MySQL 8.4.2
Source Code Documentation
My_xp_mutex_server Class Reference

#include <my_xp_mutex.h>

Inheritance diagram for My_xp_mutex_server:
[legend]

Public Member Functions

 My_xp_mutex_server ()
 
 ~My_xp_mutex_server () override
 
int init (PSI_mutex_key key, const native_mutexattr_t *attr) override
 Initialize mutex. More...
 
int destroy () override
 Destroy mutex. More...
 
int lock () override
 Lock mutex. More...
 
int trylock () override
 Trylock mutex. More...
 
int unlock () override
 Unlock mutex. More...
 
mysql_mutex_tget_native_mutex () override
 To get native mutex reference. More...
 
- Public Member Functions inherited from My_xp_mutex
virtual ~My_xp_mutex ()=default
 

Protected Attributes

mysql_mutex_tm_mutex
 

Constructor & Destructor Documentation

◆ My_xp_mutex_server()

My_xp_mutex_server::My_xp_mutex_server ( )
explicit

◆ ~My_xp_mutex_server()

My_xp_mutex_server::~My_xp_mutex_server ( )
override

Member Function Documentation

◆ destroy()

int My_xp_mutex_server::destroy ( )
overridevirtual

Destroy mutex.

Returns
success status

Implements My_xp_mutex.

◆ get_native_mutex()

mysql_mutex_t * My_xp_mutex_server::get_native_mutex ( )
overridevirtual

To get native mutex reference.

Returns
native mutex pointer

Implements My_xp_mutex.

◆ init()

int My_xp_mutex_server::init ( PSI_mutex_key  key,
const native_mutexattr_t attr 
)
overridevirtual

Initialize mutex.

Parameters
keymutex instrumentation key
attrmutex attributes reference
Returns
success status

Implements My_xp_mutex.

◆ lock()

int My_xp_mutex_server::lock ( )
overridevirtual

Lock mutex.

Returns
success status

Implements My_xp_mutex.

◆ trylock()

int My_xp_mutex_server::trylock ( )
overridevirtual

Trylock mutex.

Returns
success status

Implements My_xp_mutex.

◆ unlock()

int My_xp_mutex_server::unlock ( )
overridevirtual

Unlock mutex.

Returns
success status

Implements My_xp_mutex.

Member Data Documentation

◆ m_mutex

mysql_mutex_t* My_xp_mutex_server::m_mutex
protected

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