|
ORIGINAL
|
POSIX thread mutex implementation. More...
#include <mutex.h>


Public Types | |
| using | native_handle = pthread_mutex_t |
| Native handle type (pthread_mutex_t) | |
Public Member Functions | |
| pMutex () | |
| Constructs and initializes the mutex. | |
| pMutex (pMutex &&)=delete | |
| Deleted move constructor. | |
| pMutex & | operator= (pMutex &&)=delete |
| Deleted move assignment operator. | |
| ul_integer | id () const override |
| Gets a unique identifier for the mutex. | |
| void * | nativeHandle () noexcept override |
| Gets the native mutex handle. | |
| void | lock () override |
| Locks the mutex, blocking if necessary. | |
| bool | tryLock () override |
| Attempts to lock the mutex without blocking. | |
| void | unlock () override |
| Unlocks the mutex. | |
| ~pMutex () override | |
| Destroys the mutex. | |
Public Member Functions inherited from original::mutexBase | |
| mutexBase ()=default | |
| Default constructor. | |
| mutexBase (const mutexBase &)=delete | |
| Deleted copy constructor. | |
| mutexBase & | operator= (const mutexBase &)=delete |
| Deleted copy assignment operator. | |
| virtual | ~mutexBase ()=default |
| Virtual destructor. | |
Additional Inherited Members |
POSIX thread mutex implementation.
Wrapper around pthread_mutex_t with RAII semantics. Provides basic mutex functionality with proper initialization and cleanup.
|
inlineexplicit |
Constructs and initializes the mutex.
| sysError | if mutex initialization fails |
|
inlineoverride |
Destroys the mutex.
|
inlineoverridevirtual |
Gets a unique identifier for the mutex.
Implements original::mutexBase.
|
inlineoverridevirtual |
Locks the mutex, blocking if necessary.
| sysError | if the lock operation fails |
Implements original::mutexBase.
|
inlineoverridevirtualnoexcept |
Gets the native mutex handle.
Implements original::mutexBase.
|
inlineoverridevirtual |
Attempts to lock the mutex without blocking.
| sysError | if the operation fails (other than EBUSY) |
Implements original::mutexBase.
|
inlineoverridevirtual |