|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Vruta::TaskScheduler::add_task | ( | 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 17 of file Scheduler.cpp.
References auto_generate_name(), ensure_domain(), find_task_by_name(), initialize(), initialize_routine_state(), m_tasks, and token.
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(), and MayaFlux::Kriya::EventChain::start().
Here is the call graph for this function:
Here is the caller graph for this function: