|
join 1.0
lightweight network framework library
|
class used to protect shared data from being simultaneously accessed by multiple process via a shared memory. More...
#include <mutex.hpp>
Public Member Functions | |
| SharedMutex () | |
| default constructor. | |
| SharedMutex (const SharedMutex &other)=delete | |
| copy constructor. | |
| SharedMutex & | operator= (const SharedMutex &other)=delete |
| copy assignment. | |
| SharedMutex (SharedMutex &&other)=delete | |
| move constructor. | |
| SharedMutex & | operator= (SharedMutex &&other)=delete |
| move assignment. | |
| ~SharedMutex () | |
| 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 process via a shared memory.
| SharedMutex::SharedMutex | ( | ) |
default constructor.
|
delete |
copy constructor.
| other | other object to copy. |
|
delete |
move constructor.
| other | other object to move. |
| SharedMutex::~SharedMutex | ( | ) |
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.