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

◆ atomic_set_flag_strong()

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

Atomically sets a node state flag to a specific value.

Parameters
flagThe atomic node state to modify
desiredThe desired new state value

Forcefully updates a node's state to a specific value. This is used when the node needs to be placed into a definitive state regardless of its current condition, such as when activating or deactivating nodes in the audio processing chain.

Definition at line 90 of file NodeUtils.cpp.

91{
92 auto expected = flag.load();
93 flag.compare_exchange_strong(expected, desired);
94};

Referenced by MayaFlux::Nodes::RootNode::process_pending_operations(), and MayaFlux::Nodes::RootNode::unregister_node().

+ Here is the caller graph for this function: