zpp
Zephyr C++20 Framework
|
A condition variable class. More...
#include <condition_variable.hpp>
Public Member Functions | |
condition_variable () noexcept | |
Default constructor. 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... | |
condition_variable (const condition_variable &)=delete | |
condition_variable (condition_variable &&)=delete | |
condition_variable & | operator= (const condition_variable &)=delete |
condition_variable & | operator= (condition_variable &&)=delete |
Public Member Functions inherited from zpp::condition_variable_base< condition_variable > | |
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 > | |
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 > | |
constexpr | condition_variable_base () noexcept=default |
Protected default constructor so only derived classes can be created. More... | |
A condition variable class.
Definition at line 233 of file condition_variable.hpp.
|
inlinenoexcept |
Default constructor.
Definition at line 239 of file condition_variable.hpp.
|
delete |
|
delete |
|
inlineconstexprnoexcept |
get the native zephyr condition variable handle.
Definition at line 258 of file condition_variable.hpp.
|
inlineconstexprnoexcept |
get the native zephyr condition variable handle.
Definition at line 249 of file condition_variable.hpp.
|
delete |
|
delete |