Ark Server API (ASE) - Wiki
|
#include <ScopedLock.h>
Public Member Functions | |
ScopedLockWithUnlock (M &mutex) | |
ScopedLockWithUnlock (M &mutex, long milliseconds) | |
~ScopedLockWithUnlock () | |
void | unlock () |
Private Member Functions | |
ScopedLockWithUnlock () | |
ScopedLockWithUnlock (const ScopedLockWithUnlock &) | |
ScopedLockWithUnlock & | operator= (const ScopedLockWithUnlock &) |
Private Attributes | |
M * | _pMutex |
A class that simplifies thread synchronization with a mutex. The constructor accepts a Mutex (and optionally a timeout value in milliseconds) and locks it. The destructor unlocks the mutex. The unlock() member function allows for manual unlocking of the mutex.
Definition at line 68 of file ScopedLock.h.
|
inlineexplicit |
Definition at line 78 of file ScopedLock.h.
|
inline |
Definition at line 83 of file ScopedLock.h.
|
inline |
Definition at line 88 of file ScopedLock.h.
|
private |
|
private |
|
private |
|
inline |
Definition at line 100 of file ScopedLock.h.
|
private |
Definition at line 110 of file ScopedLock.h.