Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
dev::Notified< N > Class Template Reference

#include <Guards.h>

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
 

Detailed Description

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

Definition at line 85 of file Guards.h.

Constructor & Destructor Documentation

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

Definition at line 88 of file Guards.h.

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

Definition at line 89 of file Guards.h.

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

Member Function Documentation

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

Definition at line 93 of file Guards.h.

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

Definition at line 91 of file Guards.h.

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

Definition at line 95 of file Guards.h.

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

Definition at line 96 of file Guards.h.

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

Definition at line 98 of file Guards.h.

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

Definition at line 100 of file Guards.h.

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

Definition at line 101 of file Guards.h.

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

Definition at line 103 of file Guards.h.

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

Definition at line 97 of file Guards.h.

Here is the caller graph for this function:

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

Definition at line 102 of file Guards.h.

Member Data Documentation

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

Definition at line 107 of file Guards.h.

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

Definition at line 106 of file Guards.h.

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

Definition at line 108 of file Guards.h.


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