Lock class implementing a critical region that only one thread can enter at a time. More...
Classes | |
class | Block |
Utility class to acquire a lock that is released by the destructor. More... |
|
Public Member Functions | |
Lock () | |
Constructor. More... |
|
~Lock () | |
Destructor. More... |
|
Protected Member Functions | |
void | lock () |
Lock the lock. More... |
|
void | unlock () |
Unlock the lock. More... |
|
Lock class implementing a critical region that only one thread can enter at a time.
|
inline |
Constructor.
|
inline |
Destructor.
|
inlineprotected |
Lock the lock.
|
inlineprotected |
Unlock the lock.