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

◆ reset_processed_state()

void MayaFlux::Nodes::BinaryOpNode::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 173 of file NodeCombine.cpp.

174{
176 if (m_lhs)
177 m_lhs->reset_processed_state();
178 if (m_rhs)
179 m_rhs->reset_processed_state();
180}
std::shared_ptr< Node > m_lhs
The left-hand side node.
std::shared_ptr< Node > m_rhs
The right-hand side node.
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_lhs, m_rhs, MayaFlux::Nodes::Node::m_state, and MayaFlux::Nodes::PROCESSED.

+ Here is the call graph for this function: