Pyrogenesis
13997
|
Locks a CMutex over this object's lifetime. More...
#include <ThreadUtil.h>
Public Member Functions | |
CScopeLock (pthread_mutex_t *mutex) | |
CScopeLock (CMutex &mutex) | |
~CScopeLock () | |
Private Member Functions | |
NONCOPYABLE (CScopeLock) | |
Private Attributes | |
pthread_mutex_t * | m_Mutex |
Locks a CMutex over this object's lifetime.
The mutexes are non-recursive - a single thread locking a mutex more than once results in undefined behaviour.
Definition at line 73 of file ThreadUtil.h.
|
inline |
Definition at line 78 of file ThreadUtil.h.
|
inline |
Definition at line 84 of file ThreadUtil.h.
|
inline |
Definition at line 90 of file ThreadUtil.h.
|
private |
|
private |
Definition at line 96 of file ThreadUtil.h.