µOS++ IIIe Reference  v6.3.15
“Perfekt ist nicht gut genug”
The third edition of µOS++, a POSIX inspired open source system, written in C++.
os::estd::condition_variable_any Class Reference

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 154 of file condition_variable.

Types

◆ Native_clock

Constructor & Destructor Documentation

◆ condition_variable_any() [1/2]

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

Definition at line 331 of file condition_variable.

◆ ~condition_variable_any()

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

Definition at line 341 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 354 of file condition_variable.

◆ notify_one()

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

Definition at line 347 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 372 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 387 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 430 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 438 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 395 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 412 of file condition_variable.

Member Data Documentation

◆ cv_

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

Definition at line 206 of file condition_variable.

◆ mx_

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

Definition at line 207 of file condition_variable.


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