|
join 1.0
lightweight network framework library
|
class used to protect shared data from being simultaneously accessed by multiple threads. More...
#include <mutex.hpp>
Public Member Functions | |
| RecursiveMutex () | |
| default constructor. | |
| RecursiveMutex (const Mutex &other)=delete | |
| copy constructor. | |
| RecursiveMutex & | operator= (const RecursiveMutex &other)=delete |
| copy assignment. | |
| RecursiveMutex (RecursiveMutex &&other)=delete | |
| move constructor. | |
| RecursiveMutex & | operator= (RecursiveMutex &&other)=delete |
| move assignment. | |
| ~RecursiveMutex () | |
| destroys the mutex object. | |
| void | lock () noexcept |
| lock the mutex. | |
| bool | tryLock () noexcept |
| lock the mutex or return immediatly if the mutex is already locked. | |
| void | unlock () noexcept |
| unlock the mutex. | |
| pthread_mutex_t * | handle () noexcept |
| get native handle. | |
class used to protect shared data from being simultaneously accessed by multiple threads.
| RecursiveMutex::RecursiveMutex | ( | ) |
default constructor.
|
delete |
copy constructor.
| other | other object to copy. |
|
delete |
move constructor.
| other | other object to move. |
| RecursiveMutex::~RecursiveMutex | ( | ) |
destroys the mutex object.
|
noexcept |
get native handle.
|
noexcept |
lock the mutex.
|
delete |
copy assignment.
| other | other object to copy. |
|
delete |
move assignment.
| other | other object to move. |
|
noexcept |
lock the mutex or return immediatly if the mutex is already locked.
|
noexcept |
unlock the mutex.