CppCMS
|
Shared mutex or a.k.a. Read-Write Lock. More...
#include <booster/booster/thread.h>
Public Member Functions | |
void | lock () |
void | unique_lock () |
void | shared_lock () |
void | unlock () |
Shared mutex or a.k.a. Read-Write Lock.
This class provides two options of locking unique - nobody but me can use the object shared anybody with shared lock can use the object.
|
inline |
Same as unique_lock()
void booster::shared_mutex::shared_lock | ( | ) |
Acquire a shared lock on the object.
Note this function is not recursive
void booster::shared_mutex::unique_lock | ( | ) |
Acquire a unique lock on the object.
void booster::shared_mutex::unlock | ( | ) |
Release the lock