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

#include <condition_variable>

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

Member Typedef Documentation

◆ Native_clock

◆ native_handle_type

◆ native_type

Constructor & Destructor Documentation

◆ condition_variable() [1/2]

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

Definition at line 213 of file condition_variable.

◆ ~condition_variable()

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

Definition at line 218 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 43 of file condition-variable.cpp.

◆ notify_one()

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

Definition at line 30 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 56 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 224 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 284 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 313 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 238 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 263 of file condition_variable.

Member Data Documentation

◆ ncv_

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

Definition at line 137 of file condition_variable.


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