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

◆ is_initialized()

bool MayaFlux::Nodes::ChainNode::is_initialized ( ) const

Definition at line 190 of file NodeChain.cpp.

191{
192 for (auto& node : m_nodes) {
193 auto state = node->m_state.load();
194 bool is_registered = node ? (state & NodeState::ACTIVE) : false;
195 if (is_registered)
196 return false;
197 }
198 return m_state.load() & NodeState::ACTIVE;
199}
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
@ ACTIVE
Engine is processing this node.
Definition NodeSpec.hpp:45

References MayaFlux::Nodes::ACTIVE, m_nodes, and MayaFlux::Nodes::Node::m_state.

Referenced by process_sample().

+ Here is the caller graph for this function: