µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::estd::condition_variable_any Class Reference

#include <condition_variable>

Public Member Functions

 condition_variable_any ()
 
 condition_variable_any (const condition_variable_any &)=delete
 
 ~condition_variable_any ()
 
void notify_all () noexcept
 
void notify_one () noexcept
 
condition_variable_anyoperator= (const condition_variable_any &)=delete
 
template<class Lock_T >
void wait (Lock_T &lock)
 
template<class Lock_T , class Predicate_T >
void wait (Lock_T &lock, Predicate_T pred)
 
template<class Lock_T , class Rep_T , class Period_T >
cv_status wait_for (Lock_T &lock, const std::chrono::duration< Rep_T, Period_T > &rel_time)
 
template<class Lock_T , class Rep_T , class Period_T , class Predicate_T >
bool wait_for (Lock_T &lock, const std::chrono::duration< Rep_T, Period_T > &rel_time, Predicate_T pred)
 
template<class Lock_T , class Clock_T , class Duration_T >
cv_status wait_until (Lock_T &lock, const std::chrono::time_point< Clock_T, Duration_T > &abs_time)
 
template<class Lock_T , class Clock_T , class Duration_T , class Predicate_T >
bool wait_until (Lock_T &lock, const std::chrono::time_point< Clock_T, Duration_T > &abs_time, Predicate_T pred)
 

Protected Types

using Native_clock = os::estd::chrono::systick_clock
 

Protected Attributes

condition_variable cv_
 
std::shared_ptr< mutexmx_
 

Detailed Description

Definition at line 162 of file condition_variable.

Member Typedef Documentation

◆ Native_clock

Constructor & Destructor Documentation

◆ condition_variable_any() [1/2]

os::estd::condition_variable_any::condition_variable_any ( )
inline

Definition at line 339 of file condition_variable.

◆ ~condition_variable_any()

os::estd::condition_variable_any::~condition_variable_any ( )
inline

Definition at line 349 of file condition_variable.

◆ condition_variable_any() [2/2]

os::estd::condition_variable_any::condition_variable_any ( const condition_variable_any )
delete

Member Function Documentation

◆ notify_all()

void os::estd::condition_variable_any::notify_all ( )
inlinenoexcept

Definition at line 362 of file condition_variable.

◆ notify_one()

void os::estd::condition_variable_any::notify_one ( )
inlinenoexcept

Definition at line 355 of file condition_variable.

◆ operator=()

condition_variable_any & os::estd::condition_variable_any::operator= ( const condition_variable_any )
delete

◆ wait() [1/2]

template<class Lock_T >
void os::estd::condition_variable_any::wait ( Lock_T &  lock)

Definition at line 380 of file condition_variable.

◆ wait() [2/2]

template<class Lock_T , class Predicate_T >
void os::estd::condition_variable_any::wait ( Lock_T &  lock,
Predicate_T  pred 
)
inline

Definition at line 395 of file condition_variable.

◆ wait_for() [1/2]

template<class Lock_T , class Rep_T , class Period_T >
cv_status os::estd::condition_variable_any::wait_for ( Lock_T &  lock,
const std::chrono::duration< Rep_T, Period_T > &  rel_time 
)
inline

Definition at line 438 of file condition_variable.

◆ wait_for() [2/2]

template<class Lock_T , class Rep_T , class Period_T , class Predicate_T >
bool os::estd::condition_variable_any::wait_for ( Lock_T &  lock,
const std::chrono::duration< Rep_T, Period_T > &  rel_time,
Predicate_T  pred 
)
inline

Definition at line 446 of file condition_variable.

◆ wait_until() [1/2]

template<class Lock_T , class Clock_T , class Duration_T >
cv_status os::estd::condition_variable_any::wait_until ( Lock_T &  lock,
const std::chrono::time_point< Clock_T, Duration_T > &  abs_time 
)

Definition at line 403 of file condition_variable.

◆ wait_until() [2/2]

template<class Lock_T , class Clock_T , class Duration_T , class Predicate_T >
bool os::estd::condition_variable_any::wait_until ( Lock_T &  lock,
const std::chrono::time_point< Clock_T, Duration_T > &  abs_time,
Predicate_T  pred 
)
inline

Definition at line 420 of file condition_variable.

Member Data Documentation

◆ cv_

condition_variable os::estd::condition_variable_any::cv_
protected

Definition at line 214 of file condition_variable.

◆ mx_

std::shared_ptr<mutex> os::estd::condition_variable_any::mx_
protected

Definition at line 215 of file condition_variable.


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