Image Component Library (ICL)
|
Interface for objects, that can be locked using an internal mutex. More...
#include <Lockable.h>
Public Member Functions | |
void | lock () const |
lock object | |
void | unlock () const |
unlock object | |
Mutex & | getMutex () const |
returns mutex of this object | |
Private Attributes | |
UncopiedInstance< Mutex > | m_mutex |
mutable and uncopied mutex instance (locking preserves constness) |
Interface for objects, that can be locked using an internal mutex.
Mutex& icl::utils::Lockable::getMutex | ( | ) | const [inline] |
returns mutex of this object
void icl::utils::Lockable::lock | ( | ) | const [inline] |
lock object
void icl::utils::Lockable::unlock | ( | ) | const [inline] |
unlock object
UncopiedInstance<Mutex> icl::utils::Lockable::m_mutex [mutable, private] |
mutable and uncopied mutex instance (locking preserves constness)