MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Memory::SerializedSeqlockWriteGuard Class Reference

Scope guard for a serialized Seqlock write. More...

#include <SeqLock.hpp>

+ Collaboration diagram for MayaFlux::Memory::SerializedSeqlockWriteGuard:

Public Member Functions

SerializedSeqlockWriteGuard & operator= (const SerializedSeqlockWriteGuard &)=delete
 
 SerializedSeqlockWriteGuard (const SerializedSeqlockWriteGuard &)=delete
 
 SerializedSeqlockWriteGuard (Seqlock &lock) noexcept
 
 ~SerializedSeqlockWriteGuard () noexcept
 

Private Attributes

Seqlock & m_lock
 

Detailed Description

Scope guard for a serialized Seqlock write.

Waits for another writer to finish, claims the odd sequence for this scope, and restores an even sequence on destruction. Readers retry as with SeqlockWriteGuard. Use when multiple callers can write the guarded state.

Definition at line 184 of file SeqLock.hpp.


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