|
RTOS Wrapper
API reference
|
Read-side ABC for FlagsSaver.
More...
#include <FlagsSaver.h>
Public Types | |
| using | Snapshot = FlagsSnapshot< kWordCount > |
Public Member Functions | |
| virtual | ~FlagsReader () noexcept=default |
| virtual bool | IsSet (FlagId id) const noexcept=0 |
True if id is currently set. | |
| virtual void | Snapshot_ (Snapshot &out) const noexcept=0 |
Copy current bit state + sequence + last-change timestamp into out. | |
| virtual uint32_t | Seq () const noexcept=0 |
| virtual uint32_t | LastChangeMs () const noexcept=0 |
Most recent now_ms value passed to Set / Clear (0 if never). | |
| virtual bool | WaitForChange (uint32_t timeout_ms) noexcept=0 |
Block up to timeout_ms waiting for any change since the last call to WaitForChange or ClearWaitEvent. | |
| virtual bool | ClearWaitEvent () noexcept=0 |
| Discard any pending change-signal without waiting. | |
Static Public Attributes | |
| static constexpr std::size_t | kWordCount |
Read-side ABC for FlagsSaver.
| using hf::FlagsReader< FlagId, kCount >::Snapshot = FlagsSnapshot<kWordCount> |
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
Discard any pending change-signal without waiting.
Implemented in hf::FlagsSaver< FlagId, kCount >.
|
pure virtualnoexcept |
True if id is currently set.
Implemented in hf::FlagsSaver< FlagId, kCount >.
|
pure virtualnoexcept |
Most recent now_ms value passed to Set / Clear (0 if never).
Implemented in hf::FlagsSaver< FlagId, kCount >.
|
pure virtualnoexcept |
Monotonic change counter; increments on every Set/Clear that actually toggled state.
Implemented in hf::FlagsSaver< FlagId, kCount >.
|
pure virtualnoexcept |
Copy current bit state + sequence + last-change timestamp into out.
Implemented in hf::FlagsSaver< FlagId, kCount >.
|
pure virtualnoexcept |
Block up to timeout_ms waiting for any change since the last call to WaitForChange or ClearWaitEvent.
true on signal; false on timeout / waiter unavailable. Implemented in hf::FlagsSaver< FlagId, kCount >.
|
staticconstexpr |