Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/sync.hpp"
scoped guard to control the actual locking.
Public Member Functions | |
template<class X > | |
Lock (X *it) | |
template<class X , class PRED > | |
Lock (X *it, PRED &&predicate) | |
convenience shortcut: Locks and immediately enters wait state on the given predicate | |
void | notify_all () |
void | notify_one () |
template<class PRED > | |
void | wait (PRED &&predicate) |
template<class DUR , class PRED > | |
bool | wait_for (DUR const &timeout, PRED &&predicate) |
Protected Member Functions | |
Lock (Monitor &m) | |
for creating a ClassLock | |
Monitor & | accessMonitor () |
subclass access to underlying sync primitives | |
Private Attributes | |
Monitor & | mon_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |