#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_variable & | operator= (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 |
Definition at line 76 of file condition_variable.
|
protected |
Definition at line 134 of file condition_variable.
Definition at line 82 of file condition_variable.
Definition at line 79 of file condition_variable.
|
inline |
Definition at line 205 of file condition_variable.
|
inline |
Definition at line 209 of file condition_variable.
|
delete |
| native_handle_type os::estd::condition_variable::native_handle | ( | ) |
|
noexcept |
Definition at line 42 of file condition-variable.cpp.
References os::estd::__throw_cmsis_error(), os::rtos::condition_variable::broadcast(), ncv_, and os::rtos::result::ok.
Referenced by os::estd::condition_variable_any::notify_all().
|
noexcept |
Definition at line 29 of file condition-variable.cpp.
References os::estd::__throw_cmsis_error(), ncv_, os::rtos::result::ok, and os::rtos::condition_variable::signal().
Referenced by os::estd::condition_variable_any::notify_one().
|
delete |
| void os::estd::condition_variable::wait | ( | std::unique_lock< mutex > & | lock | ) |
Definition at line 55 of file condition-variable.cpp.
References os::estd::__throw_cmsis_error(), os::estd::__throw_system_error(), ncv_, os::rtos::result::ok, and os::rtos::condition_variable::wait().
Referenced by os::estd::condition_variable_any::wait(), and wait().
| void os::estd::condition_variable::wait | ( | std::unique_lock< mutex > & | lock, |
| Predicate_T | pred | ||
| ) |
Definition at line 215 of file condition_variable.
References wait().
| 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 276 of file condition_variable.
References os::estd::chrono::ceil(), ncv_, os::estd::no_timeout, os::estd::chrono::systick_clock::now(), os::rtos::condition_variable::timed_wait(), and os::estd::timeout.
Referenced by wait_until().
|
inline |
Definition at line 305 of file condition_variable.
References os::estd::chrono::systick_clock::now(), and wait_until().
| 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 229 of file condition_variable.
References clock(), os::estd::no_timeout, os::estd::timeout, and wait_for().
Referenced by wait_for(), os::estd::condition_variable_any::wait_until(), and wait_until().
| 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 255 of file condition_variable.
References os::estd::timeout, and wait_until().
|
protected |
Definition at line 133 of file condition_variable.
Referenced by notify_all(), notify_one(), wait(), and wait_for().