MayaFlux 0.2.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 296 of file NodeStructure.cpp.

297{
299 if (m_lhs)
300 m_lhs->reset_processed_state();
301 if (m_rhs)
302 m_rhs->reset_processed_state();
303}
std::shared_ptr< Node > m_lhs
The left-hand side node.
std::shared_ptr< Node > m_rhs
The right-hand side node.
std::atomic< Utils::NodeState > m_state
Atomic state flag tracking the node's processing status.
Definition Node.hpp:463
void atomic_remove_flag(std::atomic< Utils::NodeState > &state, Utils::NodeState flag)
Atomically removes a flag from a node state.
@ PROCESSED
Node has been processed this cycle.
Definition Utils.hpp:34

References MayaFlux::Nodes::atomic_remove_flag(), m_lhs, m_rhs, MayaFlux::Nodes::Node::m_state, and MayaFlux::Utils::PROCESSED.

+ Here is the call graph for this function: