|
zpp
Zephyr C++20 Framework
|
A class using a reference to another native condition variable or zpp::condition_variable. More...
#include <condition_variable.hpp>
Public Member Functions | |
| constexpr | condition_variable_ref (native_pointer cv) noexcept |
| Construct a condition variable using a native k_condvar*. More... | |
| template<class T_ContitionVariable > | |
| constexpr | condition_variable_ref (const T_ContitionVariable &cv) noexcept |
| Construct a condition variable using another condition variable. More... | |
| condition_variable_ref & | operator= (native_pointer cv) noexcept |
| copy a condition variable using another condition variable More... | |
| template<class T_ContitionVariable > | |
| condition_variable_ref & | operator= (const T_ContitionVariable &cv) noexcept |
| copy a condition variable using another condition variable More... | |
| constexpr auto | native_handle () noexcept -> native_pointer |
| get the native zephyr condition variable handle. More... | |
| constexpr auto | native_handle () const noexcept -> native_const_pointer |
| get the native zephyr condition variable handle. More... | |
Public Member Functions inherited from zpp::condition_variable_base< condition_variable_ref > | |
| condition_variable_base (const condition_variable_base &)=delete | |
| condition_variable_base (condition_variable_base &&)=delete | |
| auto | notify_one () noexcept |
| Notify one waiter. More... | |
| auto | notify_all () noexcept |
| Notify all waiters. More... | |
| auto | wait (T_Mutex &m) noexcept |
| wait for ever until the variable is signaled. More... | |
| auto | wait (T_Mutex &m, T_Predecate pred) noexcept |
| wait for ever until the variable is signaled. More... | |
| auto | try_wait_for (T_Mutex &m, const std::chrono::duration< T_Rep, T_Period > &timeout) noexcept |
| Try waiting with a timeout to see if the variable is signaled. More... | |
| auto | try_wait_for (T_Mutex &m, const std::chrono::duration< T_Rep, T_Period > &timeout, T_Predecate pred) noexcept |
| Try waiting with a timeout to see if the variable is signaled. More... | |
| auto | native_handle () noexcept -> native_pointer |
| get the native zephyr k_condvar pointer. More... | |
| auto | native_handle () const noexcept -> native_const_pointer |
| get the native zephyr k_condvar pointer. More... | |
| condition_variable_base & | operator= (const condition_variable_base &)=delete |
| condition_variable_base & | operator= (condition_variable_base &&)=delete |
Additional Inherited Members | |
Public Types inherited from zpp::condition_variable_base< condition_variable_ref > | |
| using | native_type = struct k_condvar |
| using | native_pointer = native_type * |
| using | native_const_pointer = native_type const * |
Protected Member Functions inherited from zpp::condition_variable_base< condition_variable_ref > | |
| constexpr | condition_variable_base () noexcept=default |
| Protected default constructor so only derived classes can be created. More... | |
A class using a reference to another native condition variable or zpp::condition_variable.
Definition at line 278 of file condition_variable.hpp.
|
inlineexplicitconstexprnoexcept |
Construct a condition variable using a native k_condvar*.
| cv | The k_condvar to use. cv must already be initialized and will not be freed. |
Definition at line 289 of file condition_variable.hpp.
|
inlineexplicitconstexprnoexcept |
Construct a condition variable using another condition variable.
| cv | The condition variable to reference to. cv must already be initialized and will not be freed. |
Definition at line 304 of file condition_variable.hpp.
|
inlineconstexprnoexcept |
get the native zephyr condition variable handle.
Definition at line 358 of file condition_variable.hpp.
|
inlineconstexprnoexcept |
get the native zephyr condition variable handle.
Definition at line 346 of file condition_variable.hpp.
Referenced by operator=().
|
inlinenoexcept |
copy a condition variable using another condition variable
| cv | The condition variable to reference to. cv must already be initialized and will not be freed. |
Definition at line 334 of file condition_variable.hpp.
References native_handle().
|
inlinenoexcept |
copy a condition variable using another condition variable
| cv | The condition variable to reference to. cv must already be initialized and will not be freed. |
Definition at line 318 of file condition_variable.hpp.