Used to lock/unlock a RWSleepLock automatically using scope. The lock is released on dustruction. More...
#include <Locks.h>
Public Member Functions | |
| TakeRWSleepLock (RWSleepLock &rwsLock, bool writeAccessIfTakenNow=true, bool takeNow=true) | |
| Optionally takes the lock.  | |
| ~TakeRWSleepLock () | |
| Releases the reader and writer lock, if they are currently taken.  | |
| void | TakeWrite () | 
| Takes the writer lock. (If a writer is already taken by this TakeRWSleepLock instance, the call is ignored).  | |
| void | LeaveWrite () | 
| Releases a write lock. (If a writer is not taken by this TakeRWSleepLock instance, the call is ignored).  | |
| void | TakeRead () | 
| Takes a reader lock. (If a reader is already taken by this TakeRWSleepLock instance, the call is ignored).  | |
| void | LeaveRead () | 
| Releases a reader lock. (If a reader is not taken by this TakeRWSleepLock instance, the call is ignored).  | |
Used to lock/unlock a RWSleepLock automatically using scope. The lock is released on dustruction.
 1.7.1