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

◆ m_state

std::atomic<Utils::NodeState> MayaFlux::Nodes::Node::m_state { Utils::NodeState::INACTIVE }

Atomic state flag tracking the node's processing status.

This atomic state variable tracks the node's current operational status using bit flags defined in Utils::NodeState. It indicates whether the node is:

  • ACTIVE: Currently part of the processing graph
  • PROCESSED: Has been processed in the current cycle
  • PENDING_REMOVAL: Marked for removal from the processing graph
  • MOCK_PROCESS: Should be processed but output ignored

The atomic nature ensures thread-safe state transitions, allowing the audio engine to safely coordinate processing across multiple threads without data races.

Definition at line 463 of file Node.hpp.

@ INACTIVE
Engine is not processing this node.
Definition Utils.hpp:29

Referenced by MayaFlux::Nodes::Generator::Generator::enable_mock_process(), MayaFlux::Nodes::ChainNode::is_initialized(), MayaFlux::Nodes::ChainNode::reset_processed_state(), MayaFlux::Nodes::BinaryOpNode::reset_processed_state(), reset_processed_state_internal(), and MayaFlux::Nodes::Generator::Generator::should_mock_process().