MySQL 8.0.40
Source Code Documentation
|
OS mutex, without any policy. More...
#include <sync0types.h>
Public Member Functions | |
OSMutex () 1 | |
Constructor. More... | |
void | init () 1 |
Create the mutex by calling the system functions. More... | |
~OSMutex ()=default | |
Destructor. More... | |
void | destroy () 1 |
Destroy the mutex. More... | |
void | exit () 1 |
Release the mutex. More... | |
void | enter () 1 |
Acquire the mutex. More... | |
void | lock () |
void | unlock () |
bool | try_lock () 1 |
operator sys_mutex_t * () 1 | |
Required for os_event_t. More... | |
Private Attributes | |
bool | m_freed |
true if the mutex has been freed/destroyed. More... | |
sys_mutex_t | m_mutex |
OS mutex, without any policy.
It is a thin wrapper around the system mutexes. The interface is different from the policy mutexes, to ensure that it is called directly and not confused with the policy mutexes.
|
inline |
Constructor.
|
default |
Destructor.
|
inline |
Destroy the mutex.
|
inline |
Acquire the mutex.
|
inline |
Release the mutex.
|
inline |
Create the mutex by calling the system functions.
|
inline |
|
inline |
Required for os_event_t.
|
inline |
|
inline |
|
private |
true if the mutex has been freed/destroyed.
|
private |