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

◆ is_initialized()

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

Definition at line 141 of file NodeStructure.cpp.

142{
143 auto sState = m_Source->m_state.load();
144 auto tState = m_Target->m_state.load();
145
146 bool is_source_registered = m_Source ? (sState & Utils::NodeState::ACTIVE) : false;
147 bool is_target_registered = m_Target ? (tState & Utils::NodeState::ACTIVE) : false;
148 return !is_source_registered && !is_target_registered && (m_state.load() & Utils::NodeState::ACTIVE);
149}
std::shared_ptr< Node > m_Source
The upstream node that processes input first.
std::shared_ptr< Node > m_Target
The downstream node that processes the source's output.
std::atomic< Utils::NodeState > m_state
Atomic state flag tracking the node's processing status.
Definition Node.hpp:463
@ ACTIVE
Engine is processing this node.
Definition Utils.hpp:30

References MayaFlux::Utils::ACTIVE, m_Source, MayaFlux::Nodes::Node::m_state, and m_Target.

Referenced by process_sample().

+ Here is the caller graph for this function: