![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "lib/sync.hpp"
scoped guard to control the actual locking.
Public Member Functions | |
| template<class X > | |
| Lock (X *it) | |
| ~Lock () | |
| void | notify_one () |
| void | notify_all () |
| template<class PRED > | |
| void | wait (PRED &&predicate) |
| template<class DUR , class PRED > | |
| bool | wait_for (DUR const &timeout, PRED &&predicate) |
| template<class X , class PRED > | |
| Lock (X *it, PRED &&predicate) | |
| convenience shortcut: Locks and immediately enters wait state on the given 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 ()=default | |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable const &)=delete | |
| NonCopyable & | operator= (NonCopyable const &)=delete |
Definition at line 233 of file sync.hpp.
References Monitor< IMPL >::lock(), and Sync< CONF >::Lock::mon_.
Here is the call graph for this function:
|
inline |
Definition at line 234 of file sync.hpp.
References Sync< CONF >::Lock::mon_, and Monitor< IMPL >::unlock().
Here is the call graph for this function:
|
inline |
convenience shortcut: Locks and immediately enters wait state on the given predicate
Definition at line 257 of file sync.hpp.
References Monitor< IMPL >::lock(), Sync< CONF >::Lock::mon_, Monitor< IMPL >::unlock(), and Monitor< IMPL >::wait().
Here is the call graph for this function:for creating a ClassLock
Definition at line 273 of file sync.hpp.
References Monitor< IMPL >::lock(), and Sync< CONF >::Lock::mon_.
Here is the call graph for this function:
|
inline |
Definition at line 236 of file sync.hpp.
References Sync< CONF >::Lock::mon_, and Monitor< IMPL >::notify_one().
Here is the call graph for this function:
|
inline |
Definition at line 237 of file sync.hpp.
References Sync< CONF >::Lock::mon_, and Monitor< IMPL >::notify_all().
Referenced by SyncOnBool::provide().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 241 of file sync.hpp.
References Sync< CONF >::Lock::mon_, and Monitor< IMPL >::wait().
Referenced by MonitorSync::sync().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 248 of file sync.hpp.
References Sync< CONF >::Lock::mon_, and Monitor< IMPL >::wait_for().
Here is the call graph for this function:
|
inlineprotected |
subclass access to underlying sync primitives
Definition at line 280 of file sync.hpp.
References Sync< CONF >::Lock::mon_.
|
private |
Definition at line 229 of file sync.hpp.
Referenced by Sync< CONF >::Lock::Lock(), Sync< CONF >::Lock::Lock(), Sync< CONF >::Lock::Lock(), Sync< CONF >::Lock::~Lock(), Sync< CONF >::Lock::accessMonitor(), Sync< CONF >::Lock::notify_all(), Sync< CONF >::Lock::notify_one(), Sync< CONF >::Lock::wait(), and Sync< CONF >::Lock::wait_for().
Inheritance diagram for Sync< CONF >::Lock:
Collaboration diagram for Sync< CONF >::Lock: