logog
logger optimized for games
|
#include <mutex.hpp>
Public Member Functions | |
ScopedLock (Mutex &mutex) | |
~ScopedLock () | |
![]() | |
Object () | |
virtual | ~Object () |
void * | operator new (size_t nSize) |
void * | operator new[] (size_t nSize) |
void | operator delete (void *ptr) |
void | operator delete[] (void *ptr) |
Protected Attributes | |
Mutex * | m_pMutex |
Additional Inherited Members | |
![]() | |
static void * | Allocate (size_t nSize) |
static void | Deallocate (void *ptr) |
Asserts a lock while this object exists and is in scope. A ScopedLock should be declared in "auto" format, typically on the stack.
ScopedLock | ( | Mutex & | mutex | ) |
Instances and locks a ScopedLock.
mutex | The mutex to attempt to lock. Program execution halts at this point until the lock can be obtained. |
~ScopedLock | ( | ) |
|
protected |
A pointer to the lockable mutex.