Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
Monitor< IMPL > Class Template Reference

#include "lib/sync.hpp"

Description

template<class IMPL>
class lib::sync::Monitor< IMPL >

Object Monitor for synchronisation and waiting.

Implemented by a (wrapped) set of sync primitives, which are default constructible and noncopyable.

Definition at line 133 of file sync.hpp.

Public Member Functions

void lock ()
 
void unlock () noexcept
 
void notify_one () noexcept
 
void notify_all () noexcept
 
template<class PRED >
void wait (PRED &&predicate)
 
template<class DUR , class PRED >
bool wait_for (DUR const &timeout, PRED &&predicate)
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 ~NonCopyable ()=default
 
 NonCopyable ()=default
 
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 

Member Function Documentation

◆ lock()

template<class IMPL >
void lock ( )
inline

Definition at line 139 of file sync.hpp.

Referenced by Sync< CONF >::Lock::Lock(), Sync< CONF >::Lock::Lock(), and Sync< CONF >::Lock::Lock().

+ Here is the caller graph for this function:

◆ unlock()

template<class IMPL >
void unlock ( )
inlinenoexcept

Definition at line 140 of file sync.hpp.

Referenced by Sync< CONF >::Lock::Lock(), and Sync< CONF >::Lock::~Lock().

+ Here is the caller graph for this function:

◆ notify_one()

template<class IMPL >
void notify_one ( )
inlinenoexcept

Definition at line 142 of file sync.hpp.

Referenced by Sync< CONF >::Lock::notify_one().

+ Here is the caller graph for this function:

◆ notify_all()

template<class IMPL >
void notify_all ( )
inlinenoexcept

Definition at line 143 of file sync.hpp.

Referenced by Sync< CONF >::Lock::notify_all(), and DispatcherLoop::updateState().

+ Here is the caller graph for this function:

◆ wait()

template<class IMPL >
template<class PRED >
void wait ( PRED &&  predicate)
inline

Definition at line 147 of file sync.hpp.

Referenced by Sync< CONF >::Lock::Lock(), and Sync< CONF >::Lock::wait().

+ Here is the caller graph for this function:

◆ wait_for()

template<class IMPL >
template<class DUR , class PRED >
bool wait_for ( DUR const &  timeout,
PRED &&  predicate 
)
inline

Definition at line 154 of file sync.hpp.

Referenced by Sync< CONF >::Lock::wait_for().

+ Here is the caller graph for this function:
+ Inheritance diagram for Monitor< IMPL >:
+ Collaboration diagram for Monitor< IMPL >:

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