Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
safe::alarm_raw_t< T > Class Template Reference

Public Types

using status_t = util::optional_t<T>

Public Member Functions

void ring (const status_t &status)
void ring (status_t &&status)
template<class Rep, class Period>
auto wait_for (const std::chrono::duration< Rep, Period > &rel_time)
template<class Rep, class Period, class Pred>
auto wait_for (const std::chrono::duration< Rep, Period > &rel_time, Pred &&pred)
template<class Rep, class Period>
auto wait_until (const std::chrono::duration< Rep, Period > &rel_time)
template<class Rep, class Period, class Pred>
auto wait_until (const std::chrono::duration< Rep, Period > &rel_time, Pred &&pred)
auto wait ()
template<class Pred>
auto wait (Pred &&pred)
const status_t & status () const
status_t & status ()
void reset ()

Detailed Description

template<class T>
class safe::alarm_raw_t< T >

Definition at line 152 of file thread_safe.h.

Member Typedef Documentation

◆ status_t

template<class T>
using safe::alarm_raw_t< T >::status_t = util::optional_t<T>

Definition at line 154 of file thread_safe.h.

Member Function Documentation

◆ reset()

template<class T>
void safe::alarm_raw_t< T >::reset ( )
inline

Definition at line 231 of file thread_safe.h.

◆ ring() [1/2]

template<class T>
void safe::alarm_raw_t< T >::ring ( const status_t & status)
inline

Definition at line 156 of file thread_safe.h.

◆ ring() [2/2]

template<class T>
void safe::alarm_raw_t< T >::ring ( status_t && status)
inline

Definition at line 164 of file thread_safe.h.

◆ status() [1/2]

template<class T>
status_t & safe::alarm_raw_t< T >::status ( )
inline

Definition at line 227 of file thread_safe.h.

◆ status() [2/2]

template<class T>
const status_t & safe::alarm_raw_t< T >::status ( ) const
inline

Definition at line 223 of file thread_safe.h.

◆ wait() [1/2]

template<class T>
auto safe::alarm_raw_t< T >::wait ( )
inline

Definition at line 208 of file thread_safe.h.

◆ wait() [2/2]

template<class T>
template<class Pred>
auto safe::alarm_raw_t< T >::wait ( Pred && pred)
inline

Definition at line 216 of file thread_safe.h.

◆ wait_for() [1/2]

template<class T>
template<class Rep, class Period>
auto safe::alarm_raw_t< T >::wait_for ( const std::chrono::duration< Rep, Period > & rel_time)
inline

Definition at line 173 of file thread_safe.h.

◆ wait_for() [2/2]

template<class T>
template<class Rep, class Period, class Pred>
auto safe::alarm_raw_t< T >::wait_for ( const std::chrono::duration< Rep, Period > & rel_time,
Pred && pred )
inline

Definition at line 182 of file thread_safe.h.

◆ wait_until() [1/2]

template<class T>
template<class Rep, class Period>
auto safe::alarm_raw_t< T >::wait_until ( const std::chrono::duration< Rep, Period > & rel_time)
inline

Definition at line 191 of file thread_safe.h.

◆ wait_until() [2/2]

template<class T>
template<class Rep, class Period, class Pred>
auto safe::alarm_raw_t< T >::wait_until ( const std::chrono::duration< Rep, Period > & rel_time,
Pred && pred )
inline

Definition at line 200 of file thread_safe.h.


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