MayaFlux 0.2.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 110 of file Node.cpp.

111{
112 uint64_t expected = context_id;
113 m_snapshot_context_id.compare_exchange_strong(
114 expected, 0,
115 std::memory_order_release,
116 std::memory_order_relaxed);
117}
std::atomic< uint64_t > m_snapshot_context_id
Unique identifier for the current snapshot context.
Definition Node.hpp:610

References m_snapshot_context_id.