RAII method of locking mutexes. More...
#include <Thread.hpp>
Public Member Functions | |
Lock () | |
Creates and locks an anonymous mutex. | |
Lock (Mutex &mutex_) | |
Locks the mutex. | |
~Lock () | |
Unlocks the mutex. |
RAII method of locking mutexes.
a5::Lock::Lock | ( | ) |
Creates and locks an anonymous mutex.
a5::Lock::Lock | ( | Mutex & | mutex_ | ) |
Locks the mutex.
a5::Lock::~Lock | ( | ) |
Unlocks the mutex.