![]() |
Image Component Library (ICL)
|
Interface for objects, that can be locked using an internal mutex. More...
#include <Lockable.h>
Public Member Functions | |
| Lockable (bool recursive=false) | |
| Default constructor. More... | |
| Lockable (const Lockable &l) | |
| copy constructor (does not copy the source mutex) More... | |
| Lockable & | operator= (const Lockable &l) |
| assignment operator (does not copy the source mutex) More... | |
| ~Lockable () | |
| Destructor. More... | |
| void | lock () const |
| lock object More... | |
| void | unlock () const |
| unlock object More... | |
| Mutex & | getMutex () const |
| returns mutex of this object More... | |
Private Attributes | |
| Mutex * | m_mutex |
| wrapped mutex variable More... | |
Interface for objects, that can be locked using an internal mutex.
|
inline |
Default constructor.
|
inline |
copy constructor (does not copy the source mutex)
|
inline |
Destructor.
|
inline |
returns mutex of this object
|
inline |
lock object
assignment operator (does not copy the source mutex)
|
inline |
unlock object
|
private |
wrapped mutex variable
1.8.15