Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
Condition< MTX > Struct Template Reference

#include "lib/sync.hpp"

Description

template<class MTX>
struct lib::sync::Condition< MTX >

Definition at line 83 of file sync.hpp.

Public Member Functions

template<class PRED >
void wait (PRED &&predicate)
 
template<class REPR , class PERI , class PRED >
bool wait_for (std::chrono::duration< REPR, PERI > const &timeout, PRED &&predicate)
 
MTX & mutex ()
 
std::condition_variable_any & condVar ()
 

Member Function Documentation

◆ wait()

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

Definition at line 90 of file sync.hpp.

References Condition< MTX >::condVar(), and Condition< MTX >::mutex().

+ Here is the call graph for this function:

◆ wait_for()

template<class MTX >
template<class REPR , class PERI , class PRED >
bool wait_for ( std::chrono::duration< REPR, PERI > const &  timeout,
PRED &&  predicate 
)
inline
Returns
false in case of timeout, true if predicate is fulfilled at return

Definition at line 100 of file sync.hpp.

References Condition< MTX >::condVar(), and Condition< MTX >::mutex().

+ Here is the call graph for this function:

◆ mutex()

template<class MTX >
MTX & mutex ( )
inline

Definition at line 106 of file sync.hpp.

Referenced by Condition< MTX >::wait(), and Condition< MTX >::wait_for().

+ Here is the caller graph for this function:

◆ condVar()

template<class MTX >
std::condition_variable_any & condVar ( )
inline

Definition at line 111 of file sync.hpp.

Referenced by Condition< MTX >::wait(), and Condition< MTX >::wait_for().

+ Here is the caller graph for this function:
+ Inheritance diagram for Condition< MTX >:
+ Collaboration diagram for Condition< MTX >:

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