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

◆ release_snapshot_context()

void MayaFlux::Nodes::Node::release_snapshot_context ( uint64_t  context_id)

Release snapshot context.

Parameters
context_idContext to release

Called by the snapshot owner after restore_state() completes, allowing other buffers to proceed with their own snapshots.

Definition at line 124 of file Node.cpp.

125{
126 uint64_t expected = context_id;
127 m_snapshot_context_id.compare_exchange_strong(
128 expected, 0,
129 std::memory_order_release,
130 std::memory_order_relaxed);
131}
std::atomic< uint64_t > m_snapshot_context_id
Unique identifier for the current snapshot context.
Definition Node.hpp:752

References m_snapshot_context_id.