xoreos
0.0.5
|
Convenience class that locks a mutex on creation and unlocks it on destruction. More...
#include <mutex.h>
Public Member Functions | |
StackLock (Mutex &mutex) | |
StackLock (Semaphore &semaphore) | |
~StackLock () | |
Private Attributes | |
Mutex * | _mutex |
Semaphore * | _semaphore |
Convenience class that locks a mutex on creation and unlocks it on destruction.
Common::StackLock::StackLock | ( | Mutex & | mutex | ) |
Definition at line 84 of file mutex.cpp.
References _mutex, and Common::Mutex::lock().
Common::StackLock::StackLock | ( | Semaphore & | semaphore | ) |
Definition at line 88 of file mutex.cpp.
References _semaphore, and Common::Semaphore::lock().
Common::StackLock::~StackLock | ( | ) |
Definition at line 92 of file mutex.cpp.
References _mutex, _semaphore, Common::Mutex::unlock(), and Common::Semaphore::unlock().
|
private |
Definition at line 78 of file mutex.h.
Referenced by StackLock(), and ~StackLock().
|
private |
Definition at line 79 of file mutex.h.
Referenced by StackLock(), and ~StackLock().