ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation.sync.seqlock Module Reference

Data Structures

class  zxfoundation::sync::seqlock< T >

Functions

auto operator= (const seqlock &)=delete
auto operator= (seqlock &&)=delete
auto read () const noexcept -> T
 Read the current value. Lock-free; retries on torn read.
 seqlock (const seqlock &)=delete
constexpr seqlock (const T &initial) noexcept
 seqlock (seqlock &&)=delete
auto sequence () const noexcept -> u64
 Return the sequence counter (diagnostic).
auto write (const T &val) noexcept -> void
 Write a new value.

Files

file  zxfoundation/sync/seqlock.cxxm