TARAXA
dev::Notified< N > Class Template Reference

#include <Guards.h>

Collaboration diagram for dev::Notified< N >:

Public Member Functions

 Notified ()
 
 Notified (N const &_v)
 
 Notified (Notified const &)=delete
 
Notifiedoperator= (N const &_v)
 
 operator N () const
 
void wait () const
 
void wait (N const &_v) const
 
void waitNot (N const &_v) const
 
template<class F >
void wait (F const &_f) const
 
template<class R , class P >
void wait (std::chrono::duration< R, P > _d) const
 
template<class R , class P >
void wait (std::chrono::duration< R, P > _d, N const &_v) const
 
template<class R , class P >
void waitNot (std::chrono::duration< R, P > _d, N const &_v) const
 
template<class R , class P , class F >
void wait (std::chrono::duration< R, P > _d, F const &_f) const
 

Private Attributes

Mutex m_mutex
 
std::condition_variable m_cv
 
m_value
 

Constructor & Destructor Documentation

◆ Notified() [1/3]

template<class N >
dev::Notified< N >::Notified ( )
inline

◆ Notified() [2/3]

template<class N >
dev::Notified< N >::Notified ( N const &  _v)
inline

◆ Notified() [3/3]

template<class N >
dev::Notified< N >::Notified ( Notified< N > const &  )
delete

Member Function Documentation

◆ operator N()

template<class N >
dev::Notified< N >::operator N ( ) const
inline

◆ operator=()

template<class N >
Notified& dev::Notified< N >::operator= ( N const &  _v)
inline

◆ wait() [1/6]

template<class N >
void dev::Notified< N >::wait ( ) const
inline

◆ wait() [2/6]

template<class N >
template<class F >
void dev::Notified< N >::wait ( F const &  _f) const
inline

◆ wait() [3/6]

template<class N >
void dev::Notified< N >::wait ( N const &  _v) const
inline

◆ wait() [4/6]

template<class N >
template<class R , class P >
void dev::Notified< N >::wait ( std::chrono::duration< R, P >  _d) const
inline

◆ wait() [5/6]

template<class N >
template<class R , class P , class F >
void dev::Notified< N >::wait ( std::chrono::duration< R, P >  _d,
F const &  _f 
) const
inline

◆ wait() [6/6]

template<class N >
template<class R , class P >
void dev::Notified< N >::wait ( std::chrono::duration< R, P >  _d,
N const &  _v 
) const
inline

◆ waitNot() [1/2]

template<class N >
void dev::Notified< N >::waitNot ( N const &  _v) const
inline

◆ waitNot() [2/2]

template<class N >
template<class R , class P >
void dev::Notified< N >::waitNot ( std::chrono::duration< R, P >  _d,
N const &  _v 
) const
inline

Member Data Documentation

◆ m_cv

template<class N >
std::condition_variable dev::Notified< N >::m_cv
mutableprivate

◆ m_mutex

template<class N >
Mutex dev::Notified< N >::m_mutex
mutableprivate

◆ m_value

template<class N >
N dev::Notified< N >::m_value
private

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