RTOS Wrapper
API reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hf::SnapshotWriter< T > Class Template Referenceabstract

#include <SeqlockSnapshot.h>

Inheritance diagram for hf::SnapshotWriter< T >:
hf::SeqlockSnapshot< T >

Public Member Functions

virtual ~SnapshotWriter () noexcept=default
 
virtual void Publish (const T &value) noexcept=0
 Atomically replace the published snapshot with value.
 

Constructor & Destructor Documentation

◆ ~SnapshotWriter()

template<typename T >
virtual hf::SnapshotWriter< T >::~SnapshotWriter ( )
virtualdefaultnoexcept

Member Function Documentation

◆ Publish()

template<typename T >
virtual void hf::SnapshotWriter< T >::Publish ( const T &  value)
pure virtualnoexcept

Atomically replace the published snapshot with value.

Single-writer only. Increments Seq() by 2 and signals waiters.

Implemented in hf::SeqlockSnapshot< T >.


The documentation for this class was generated from the following file: