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

◆ atomic_set_strong()

void MayaFlux::Nodes::atomic_set_strong ( std::atomic< NodeState > &  flag,
NodeState expected,
const NodeState desired 
)

Atomically sets a node state flag with strong memory ordering.

Parameters
flagThe atomic node state to modify
expectedThe expected current state value
desiredThe desired new state value

This function safely updates a node's state, ensuring that state transitions are consistent across the audio processing graph. Node states track important conditions like whether a node is active, processed, or pending removal, which are critical for coordinating audio signal flow.

Definition at line 83 of file NodeUtils.cpp.

84{
85 flag.compare_exchange_strong(expected, desired);
86};