Public Member Functions | |
ScopedLock (Mutex &m) | |
~ScopedLock () | |
Private Attributes | |
Mutex & | mutex |
acquire
and release
. Threads::Mutex::ScopedLock::ScopedLock | ( | Mutex & | m | ) | [inline] |
Constructor. Lock the mutex.
References Threads::Mutex::acquire(), and mutex.
Threads::Mutex::ScopedLock::~ScopedLock | ( | ) | [inline] |
Destructor. Unlock the mutex. Since this is a dummy mutex class, this of course does nothing.
References mutex, and Threads::Mutex::release().
Mutex& Threads::Mutex::ScopedLock::mutex [private] |
Store the address of the mutex object.
Referenced by ScopedLock(), and ~ScopedLock().