MayaFlux 1.0.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

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

Private Attributes

Seqlock & m_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);
}
const uint32_t * src
RAII guard that brackets a Seqlock write region.
Definition SeqLock.hpp:155

Definition at line 155 of file SeqLock.hpp.


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