#include <Synchronization.h>
Public Methods | |
ScopedMutex (Mutex &mutex) | |
Create a scoped mutex associated with a particular mutex. More... | |
~ScopedMutex () | |
Destroys the scoped mutex. More... | |
Private Attributes | |
Mutex & | m_mutex |
A reference to the mutex passed to the costructor. More... |
This class waits on the mutex specified in the constructor and releases that mutex when it destructs.
Definition at line 63 of file Synchronization.h.
|
Create a scoped mutex associated with a particular mutex. This call waits on the specified mutex immediately.
Definition at line 111 of file Synchronization.cpp. References m_mutex.
|
|
Destroys the scoped mutex. This call releases the mutex specified in the constructor. Definition at line 115 of file Synchronization.cpp. References m_mutex.
00116 { 00117 m_mutex.Release(); 00118 } |
|
A reference to the mutex passed to the costructor.
Definition at line 79 of file Synchronization.h. Referenced by ScopedMutex(), and ~ScopedMutex(). |