zpp
Zephyr C++20 Framework
|
CRTP base class for poll_signals. More...
#include <poll_signal.hpp>
Public Types | |
using | native_type = struct k_poll_signal |
using | native_pointer = native_type * |
using | native_const_pointer = native_type const * |
Public Member Functions | |
std::optional< int > | check () noexcept |
check if the signal was signaled More... | |
bool | raise (int result) noexcept |
signal the signal More... | |
void | reset () noexcept |
reset the state to non-signalled More... | |
auto | native_handle () noexcept -> native_pointer |
get the native k_poll_signal handle More... | |
auto | native_handle () const noexcept -> native_const_pointer |
get the native k_poll_signal handle More... | |
poll_signal_base (const poll_signal_base &)=delete | |
poll_signal_base (poll_signal_base &&)=delete | |
poll_signal_base & | operator= (const poll_signal_base &)=delete |
poll_signal_base & | operator= (poll_signal_base &&)=delete |
Protected Member Functions | |
poll_signal_base () noexcept | |
default contructor only to be used by derived classes More... | |
CRTP base class for poll_signals.
PollSignal | the CRTP derived class |
Definition at line 26 of file poll_signal.hpp.
using zpp::poll_signal_base< T_PollSignal >::native_const_pointer = native_type const * |
Definition at line 30 of file poll_signal.hpp.
using zpp::poll_signal_base< T_PollSignal >::native_pointer = native_type * |
Definition at line 29 of file poll_signal.hpp.
using zpp::poll_signal_base< T_PollSignal >::native_type = struct k_poll_signal |
Definition at line 28 of file poll_signal.hpp.
|
inlineprotectednoexcept |
default contructor only to be used by derived classes
Definition at line 35 of file poll_signal.hpp.
|
delete |
|
delete |
|
inlinenoexcept |
check if the signal was signaled
Definition at line 44 of file poll_signal.hpp.
References zpp::poll_signal_base< T_PollSignal >::native_handle().
|
inlinenoexcept |
get the native k_poll_signal handle
Definition at line 98 of file poll_signal.hpp.
References zpp::poll_signal_base< T_PollSignal >::native_handle().
|
inlinenoexcept |
get the native k_poll_signal handle
Definition at line 88 of file poll_signal.hpp.
Referenced by zpp::poll_signal_base< T_PollSignal >::check(), zpp::poll_signal_base< T_PollSignal >::native_handle(), zpp::poll_signal_base< T_PollSignal >::raise(), and zpp::poll_signal_base< T_PollSignal >::reset().
|
delete |
|
delete |
|
inlinenoexcept |
signal the signal
result | the value that check will return |
Definition at line 65 of file poll_signal.hpp.
References zpp::poll_signal_base< T_PollSignal >::native_handle().
|
inlinenoexcept |
reset the state to non-signalled
Definition at line 78 of file poll_signal.hpp.
References zpp::poll_signal_base< T_PollSignal >::native_handle().