MayaFlux 0.5.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 119 of file Node.cpp.

120{
121 return m_snapshot_context_id.load(std::memory_order_acquire) == context_id;
122}
std::atomic< uint64_t > m_snapshot_context_id
Unique identifier for the current snapshot context.
Definition Node.hpp:752

References m_snapshot_context_id.