Ark Server API (ASE) - Wiki
|
#include <ScopedLock.h>
Public Member Functions | |
ScopedLock (M &mutex) | |
ScopedLock (M &mutex, long milliseconds) | |
~ScopedLock () | |
Private Member Functions | |
ScopedLock () | |
ScopedLock (const ScopedLock &) | |
ScopedLock & | operator= (const ScopedLock &) |
Private Attributes | |
M & | _mutex |
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.
Definition at line 28 of file ScopedLock.h.
|
inlineexplicit |
|
inline |
Definition at line 41 of file ScopedLock.h.
|
inline |
Definition at line 46 of file ScopedLock.h.
|
private |
|
private |
|
private |
|
private |
Definition at line 59 of file ScopedLock.h.