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

◆ is_in_snapshot_context()

bool MayaFlux::Nodes::Node::is_in_snapshot_context ( uint64_t  context_id) const

Check if currently in a snapshot context.

Parameters
context_idContext to check
Returns
true if this context is active

Used by secondary callers to detect when the primary snapshot holder has completed processing and released the context.

Definition at line 105 of file Node.cpp.

106{
107 return m_snapshot_context_id.load(std::memory_order_acquire) == context_id;
108}
std::atomic< uint64_t > m_snapshot_context_id
Unique identifier for the current snapshot context.
Definition Node.hpp:610

References m_snapshot_context_id.