The mutex that can be used by the processes that had forked. More...
#include <booster/booster/thread.h>
Public Member Functions | |
fork_shared_mutex () | |
bool | try_lock () |
bool | try_unique_lock () |
bool | try_shared_lock () |
void | lock () |
void | unique_lock () |
void | shared_lock () |
void | unlock () |
The mutex that can be used by the processes that had forked.
booster::fork_shared_mutex::fork_shared_mutex | ( | ) |
Create a new mutex - should be done before calling to fork()
void booster::fork_shared_mutex::lock | ( | ) | [inline] |
Acquire a unique lock on the mutex
void booster::fork_shared_mutex::shared_lock | ( | ) |
Acquire a shared lock on the mutex
bool booster::fork_shared_mutex::try_lock | ( | ) | [inline] |
Try to acquire a unique lock on the mutex
bool booster::fork_shared_mutex::try_shared_lock | ( | ) |
Try to acquire a shared lock on the mutex
bool booster::fork_shared_mutex::try_unique_lock | ( | ) |
Try to acquire a unique lock on the mutex
void booster::fork_shared_mutex::unique_lock | ( | ) |
Acquire a unique lock on the mutex
void booster::fork_shared_mutex::unlock | ( | ) |
Release the mutex