#include <SeqlockSnapshot.h>
|
| virtual | ~SnapshotReader () noexcept=default |
| |
| virtual uint32_t | Read (T &out) const noexcept=0 |
| | Read the latest coherent snapshot.
|
| |
| virtual uint32_t | Seq () const noexcept=0 |
| | Monotonic change counter (each successful Publish adds 2).
|
| |
| virtual bool | WaitForChange (uint32_t timeout_ms) noexcept=0 |
| | Block up to timeout_ms waiting for any change since the last call to WaitForChange / ClearWaitEvent.
|
| |
| virtual bool | ClearWaitEvent () noexcept=0 |
| | Drop any pending change-signal without waiting.
|
| |
◆ ~SnapshotReader()
◆ ClearWaitEvent()
◆ Read()
Read the latest coherent snapshot.
- Returns
- current sequence (post-read); always even on success.
Implemented in hf::SeqlockSnapshot< T >.
◆ Seq()
◆ WaitForChange()
Block up to timeout_ms waiting for any change since the last call to WaitForChange / ClearWaitEvent.
Implemented in hf::SeqlockSnapshot< T >.
The documentation for this class was generated from the following file: