Generic mutex lock. More...
#include <cmtkMutexLock.h>
Public Member Functions | |
MutexLock () | |
Constructor: initialize low-level lock. | |
~MutexLock () | |
Destructor: clean up low-level lock. | |
void | Lock () |
Lock: if already locked, wait until unlocked, then lock. | |
void | Unlock () |
Unlock. |
Generic mutex lock.
This class represents a thread-model independent wrapper for locks on data that requires mutually exclusive access.
Definition at line 59 of file cmtkMutexLock.h.
cmtk::MutexLock::MutexLock | ( | ) | [inline] |
Constructor: initialize low-level lock.
Definition at line 65 of file cmtkMutexLock.h.
References NULL.
cmtk::MutexLock::~MutexLock | ( | ) | [inline] |
Destructor: clean up low-level lock.
Definition at line 82 of file cmtkMutexLock.h.
void cmtk::MutexLock::Lock | ( | ) | [inline] |
Lock: if already locked, wait until unlocked, then lock.
Definition at line 94 of file cmtkMutexLock.h.
Referenced by cmtk::ThreadPool::ThreadFunction().
void cmtk::MutexLock::Unlock | ( | ) | [inline] |
Unlock.
Definition at line 106 of file cmtkMutexLock.h.
Referenced by cmtk::ThreadPool::ThreadFunction().