Public Member Functions

MPMA::TakeMutexLock Class Reference

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

#include <Locks.h>

List of all members.

Public Member Functions

 TakeMutexLock (MutexLock &critSection, bool takeNow=true)
 Optionally takes the lock.
 ~TakeMutexLock ()
 Releases the lock if it is currently taken.
void Take ()
 Manually takes the lock. (If already taken by this TakeMutexLock instance, the call is ignored).
void Leave ()
 Manually releases the lock. (If not taken by this TakeMutexLock instance, the call is ignored).

Detailed Description

Used to lock/unlock a MutexLock 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