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

◆ atomic_set_flag_strong()

MAYAFLUX_API void MayaFlux::Nodes::atomic_set_flag_strong ( std::atomic< NodeState > &  flag,
const 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 265 of file NodeUtils.cpp.

266{
267 auto expected = flag.load();
268 flag.compare_exchange_strong(expected, desired);
269};

Referenced by MayaFlux::Nodes::RootNode::process_pending_operations().

+ Here is the caller graph for this function: