Lumiera  0.pre.03
»edit your freedom«
Sync< CONF >::Lock Class Reference

#include "lib/sync.hpp"

Description

template<class CONF = NonrecursiveLock_NoWait>
class lib::Sync< CONF >::Lock

scoped guard to control the actual locking.

Definition at line 226 of file sync.hpp.

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
 
MonitoraccessMonitor ()
 subclass access to underlying sync primitives
 

Private Attributes

Monitormon_
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 
+ Inheritance diagram for Sync< CONF >::Lock:
+ Collaboration diagram for Sync< CONF >::Lock:

The documentation for this class was generated from the following file: