Etterna 0.74.4
|
Lock a mutex on construction, unlock it on destruction. More...
#include <RageThreads.h>
Public Member Functions | |
LockMutex (RageMutex &mut, const char *file, int line) | |
LockMutex (RageMutex &mut) | |
LockMutex (LockMutex &cpy) | |
void | Unlock () |
Unlock the mutex (before this would normally go out of scope). | |
Lock a mutex on construction, unlock it on destruction.
Helps for functions with more than one return path.
void LockMutex::Unlock | ( | ) |
Unlock the mutex (before this would normally go out of scope).
This can only be called once.