MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ begin_write()

void MayaFlux::Memory::Seqlock::begin_write ( )
inlinenoexcept

Begin a write: advances the counter to an odd value.

Must be paired with end_write(). Prefer SeqlockWriteGuard.

Definition at line 59 of file SeqLock.hpp.

60 {
61 m_seq.fetch_add(1U, std::memory_order_release);
62 }
std::atomic< uint32_t > m_seq
Definition SeqLock.hpp:115

References m_seq.

Referenced by MayaFlux::Memory::SeqlockWriteGuard::SeqlockWriteGuard().

+ Here is the caller graph for this function: