|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Vruta::TaskScheduler::add_task | ( | const std::shared_ptr< Routine > & | routine, |
| const std::string & | name = "", |
||
| bool | initialize = false |
||
| ) |
Add a routine to the scheduler based on its processing token.
| routine | Routine to add (SoundRoutine, GraphicsRoutine, or ComplexRoutine) |
| name | Optional name for the routine (for task management) |
| initialize | Whether to initialize the routine's state immediately |
The routine's processing token determines which domain it belongs to and which clock it synchronizes with. Automatically dispatches to the appropriate token-specific task list and clock synchronization.
Definition at line 23 of file Scheduler.cpp.
References auto_generate_name(), MayaFlux::Vruta::CONDITIONAL, MayaFlux::Journal::CoroutineScheduling, ensure_domain(), initialize(), initialize_routine_state(), m_conditional_pending_count, m_conditional_pending_ops, m_pending_count, m_pending_ops, MF_ERROR, start_conditional_thread(), and MayaFlux::Journal::Vruta.
Referenced by MayaFlux::Kriya::BufferPipeline::dispatch_branch_async(), MayaFlux::Kriya::BufferPipeline::execute_buffer_rate(), MayaFlux::Kriya::BufferPipeline::execute_for_cycles(), MayaFlux::Kriya::BufferPipeline::execute_once(), MayaFlux::Kriya::BufferPipeline::execute_scheduled(), MayaFlux::Kriya::Timer::schedule(), MayaFlux::Portal::Forma::Bridge::spawn_inbound(), MayaFlux::Portal::Forma::Bridge::spawn_sync(), MayaFlux::Kriya::EventChain::start(), MayaFlux::Portal::Forma::Bridge::write(), MayaFlux::Portal::Forma::Bridge::write(), MayaFlux::Portal::Forma::Bridge::write(), and MayaFlux::Portal::Forma::Bridge::write().
Here is the call graph for this function:
Here is the caller graph for this function: