Abstract class used to wrap mutex for various implementations.
More...
#include <my_xp_mutex.h>
Abstract class used to wrap mutex for various implementations.
A typical use case is:
...
mutex->unlock();
Definition: my_xp_mutex.h:123
Abstract class used to wrap mutex for various implementations.
Definition: my_xp_mutex.h:47
virtual int init(PSI_mutex_key key, const native_mutexattr_t *attr)=0
Initialize mutex.
virtual int lock()=0
Lock mutex.
#define NULL
Definition: types.h:55
◆ ~My_xp_mutex()
virtual My_xp_mutex::~My_xp_mutex |
( |
| ) |
|
|
virtualdefault |
◆ destroy()
virtual int My_xp_mutex::destroy |
( |
| ) |
|
|
pure virtual |
◆ get_native_mutex()
To get native mutex reference.
- Returns
- native mutex pointer
Implemented in My_xp_mutex_server.
◆ init()
Initialize mutex.
- Parameters
-
key | mutex instrumentation key |
attr | mutex attributes reference |
- Returns
- success status
Implemented in My_xp_mutex_server.
◆ lock()
virtual int My_xp_mutex::lock |
( |
| ) |
|
|
pure virtual |
◆ trylock()
virtual int My_xp_mutex::trylock |
( |
| ) |
|
|
pure virtual |
◆ unlock()
virtual int My_xp_mutex::unlock |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file:
- plugin/group_replication/libmysqlgcs/include/mysql/gcs/xplatform/my_xp_mutex.h