![]() |
MySQL 26.7.0
Source Code Documentation
|
MySQL wrapper for a mutex, template which may be specialized with a specific implementation of a mutex, e.g. More...
#include <mutex_wrapper.h>
Public Member Functions | |
| Mutex_wrapper (PSI_mutex_key key) | |
| ~Mutex_wrapper () | |
| Mutex_wrapper (const Mutex_wrapper &)=delete | |
| Mutex_wrapper (Mutex_wrapper &&)=delete | |
| Mutex_wrapper & | operator= (const Mutex_wrapper &src)=delete |
| Mutex_wrapper & | operator= (Mutex_wrapper &&src)=delete |
| void | lock () noexcept |
| Acquire a lock, blocks access to a critical section until "unlock" is called. More... | |
| bool | try_lock () noexcept |
| Non-blocking try-lock operation. More... | |
| void | unlock () |
| Unblocks access to a critical section for other threads. More... | |
| decltype(auto) | native_handle () |
| Returns the native handle of the mutex. More... | |
Protected Attributes | |
| mysql_mutex_t | m_mutex |
MySQL wrapper for a mutex, template which may be specialized with a specific implementation of a mutex, e.g.
MySQL mutex, and satisfying the following requirements:
| mysql::concurrency::Mutex_wrapper::Mutex_wrapper | ( | PSI_mutex_key | key | ) |
| mysql::concurrency::Mutex_wrapper::~Mutex_wrapper | ( | ) |
|
delete |
|
delete |
|
noexcept |
Acquire a lock, blocks access to a critical section until "unlock" is called.
|
inline |
Returns the native handle of the mutex.
|
delete |
|
delete |
|
noexcept |
Non-blocking try-lock operation.
| true | Lock has been acquired |
| false | Lock has NOT been acquired |
| void mysql::concurrency::Mutex_wrapper::unlock | ( | ) |
Unblocks access to a critical section for other threads.
|
protected |