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

◆ reset_processed_state()

void MayaFlux::Nodes::ChainNode::reset_processed_state ( )
overridevirtual

Resets the processed state of the node and any attached input nodes.

This method is used by the processing system to reset the processed state of the node at the end of each processing cycle. This ensures that all nodes are marked as unprocessed before the cycle next begins, allowing the system to correctly identify which nodes need to be processed.

Reimplemented from MayaFlux::Nodes::Node.

Definition at line 163 of file NodeChain.cpp.

164{
166 for (auto& node : m_nodes) {
167 if (node)
168 node->reset_processed_state();
169 }
170}
std::vector< std::shared_ptr< Node > > m_nodes
std::atomic< NodeState > m_state
Atomic state flag tracking the node's processing status.
Definition Node.hpp:470
@ PROCESSED
Node has been processed this cycle.
Definition NodeSpec.hpp:49
void atomic_remove_flag(std::atomic< NodeState > &state, NodeState flag)
Atomically removes a flag from a node state.

References MayaFlux::Nodes::atomic_remove_flag(), m_nodes, MayaFlux::Nodes::Node::m_state, and MayaFlux::Nodes::PROCESSED.

+ Here is the call graph for this function: