MPMA Framework 0.4
Public Member Functions
MPMA::TakeRWSleepLock Class Reference

Used to lock/unlock a RWSleepLock automatically using scope. The lock is released on dustruction. More...

#include <Locks.h>

List of all members.

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)

Detailed Description

Used to lock/unlock a RWSleepLock automatically using scope. The lock is released on dustruction.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends