CppCMS
|
Recursuve Shared mutex or a.k.a. Read-Write Lock that can be recursively locked by readers. More...
#include <booster/booster/thread.h>
Public Member Functions | |
void | lock () |
void | unique_lock () |
void | shared_lock () |
void | unlock () |
Recursuve Shared mutex or a.k.a. Read-Write Lock that can be recursively locked by readers.
This class provides two options of locking unique - nobody but me can use the object shared anybody with shared lock can use the object.
void booster::recursive_shared_mutex::lock | ( | ) | [inline] |
Same as unique_lock()
Acquire a shared lock on the object.
Acquire a unique lock on the object.
Release the lock