Used to lock/unlock a MutexLock automatically using scope. The lock is released on dustruction. More...
#include <Locks.h>
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). | |
Used to lock/unlock a MutexLock automatically using scope. The lock is released on dustruction.
1.7.1