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

RAII guard that brackets a Seqlock write region. More...

#include <SeqLock.hpp>

+ Collaboration diagram for MayaFlux::Memory::SeqlockWriteGuard:

Public Member Functions

SeqlockWriteGuardoperator= (const SeqlockWriteGuard &)=delete
 
SeqlockWriteGuardoperator= (SeqlockWriteGuard &&)=delete
 
 SeqlockWriteGuard (const SeqlockWriteGuard &)=delete
 
 SeqlockWriteGuard (Seqlock &lock) noexcept
 
 SeqlockWriteGuard (SeqlockWriteGuard &&)=delete
 
 ~SeqlockWriteGuard () noexcept
 

Private Attributes

Seqlockm_lock
 

Detailed Description

RAII guard that brackets a Seqlock write region.

Calls begin_write() on construction and end_write() on destruction. Non-copyable, non-movable: the guard is tied to a single lexical scope.

{
SeqlockWriteGuard guard(m_layer_locks[layer]);
std::memcpy(dest, src, byte_count);
}
RAII guard that brackets a Seqlock write region.
Definition SeqLock.hpp:136

Definition at line 136 of file SeqLock.hpp.


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