µ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 Class Reference

Public Types

using native_handle_type = native_type *
 

Public Member Functions

 condition_variable ()
 
 condition_variable (const condition_variable &)=delete
 
 ~condition_variable ()
 
native_handle_type native_handle ()
 
void notify_all () noexcept
 
void notify_one () noexcept
 
condition_variableoperator= (const condition_variable &)=delete
 
void wait (std::unique_lock< mutex > &lock)
 
template<class Predicate_T >
void wait (std::unique_lock< mutex > &lock, Predicate_T pred)
 
template<class Rep_T , class Period_T >
cv_status wait_for (std::unique_lock< mutex > &lock, const std::chrono::duration< Rep_T, Period_T > &rel_time)
 
template<class Rep_T , class Period_T , class Predicate_T >
bool wait_for (std::unique_lock< mutex > &lock, const std::chrono::duration< Rep_T, Period_T > &rel_time, Predicate_T pred)
 
template<class Clock_T , class Duration_T >
cv_status wait_until (std::unique_lock< mutex > &lock, const std::chrono::time_point< Clock_T, Duration_T > &abs_time)
 
template<class Clock_T , class Duration_T , class Predicate_T >
bool wait_until (std::unique_lock< mutex > &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

native_type ncv_
 

Private Types

using native_type = os::rtos::condition_variable
 

Detailed Description

Definition at line 85 of file condition_variable.

Types

◆ Native_clock

◆ native_handle_type

◆ native_type

Constructor & Destructor Documentation

◆ condition_variable() [1/2]

os::estd::condition_variable::condition_variable ( )
inline

Definition at line 221 of file condition_variable.

◆ ~condition_variable()

os::estd::condition_variable::~condition_variable ( )
inline

Definition at line 227 of file condition_variable.

◆ condition_variable() [2/2]

os::estd::condition_variable::condition_variable ( const condition_variable )
delete

Member Function Documentation

◆ native_handle()

native_handle_type os::estd::condition_variable::native_handle ( )

◆ notify_all()

void os::estd::condition_variable::notify_all ( )
noexcept

Definition at line 52 of file condition-variable.cpp.

◆ notify_one()

void os::estd::condition_variable::notify_one ( )
noexcept

Definition at line 39 of file condition-variable.cpp.

◆ operator=()

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

◆ wait() [1/2]

void os::estd::condition_variable::wait ( std::unique_lock< mutex > &  lock)

Definition at line 65 of file condition-variable.cpp.

◆ wait() [2/2]

template<class Predicate_T >
void os::estd::condition_variable::wait ( std::unique_lock< mutex > &  lock,
Predicate_T  pred 
)

Definition at line 234 of file condition_variable.

◆ wait_for() [1/2]

template<class Rep_T , class Period_T >
cv_status os::estd::condition_variable::wait_for ( std::unique_lock< mutex > &  lock,
const std::chrono::duration< Rep_T, Period_T > &  rel_time 
)

Definition at line 288 of file condition_variable.

◆ wait_for() [2/2]

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

Definition at line 317 of file condition_variable.

◆ wait_until() [1/2]

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

Definition at line 245 of file condition_variable.

◆ wait_until() [2/2]

template<class Clock_T , class Duration_T , class Predicate_T >
bool os::estd::condition_variable::wait_until ( std::unique_lock< mutex > &  lock,
const std::chrono::time_point< Clock_T, Duration_T > &  abs_time,
Predicate_T  pred 
)

Definition at line 270 of file condition_variable.

Member Data Documentation

◆ ncv_

native_type os::estd::condition_variable::ncv_
protected

Definition at line 145 of file condition_variable.


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