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

◆ atomic_set_strong()

void MayaFlux::Nodes::atomic_set_strong ( std::atomic< Utils::NodeState > &  flag,
Utils::NodeState expected,
const Utils::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 85 of file NodeUtils.cpp.

86{
87 flag.compare_exchange_strong(expected, desired);
88};