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

◆ process_buffer_cycle_tasks()

void MayaFlux::Vruta::TaskScheduler::process_buffer_cycle_tasks ( )

Definition at line 353 of file Scheduler.cpp.

354{
357
358 for (auto& task : tasks) {
359 if (task && task->is_active()) {
360 if (task->requires_clock_sync()) {
361 if (m_current_buffer_cycle >= task->next_execution()) {
362 task->try_resume_with_context(m_current_buffer_cycle, DelayContext::BUFFER_BASED);
363 }
364 } else {
365 task->try_resume_with_context(m_current_buffer_cycle, DelayContext::BUFFER_BASED);
366 }
367 }
368 }
369}
std::vector< std::shared_ptr< Routine > > get_tasks_for_token(ProcessingToken token) const
Get all tasks for a specific processing domain.
Definition Scheduler.cpp:90
@ SAMPLE_ACCURATE
Coroutine is sample-accurate.
@ BUFFER_BASED
Buffer-cycle delay (audio hardware boundary)

References MayaFlux::Vruta::BUFFER_BASED, get_tasks_for_token(), m_current_buffer_cycle, and MayaFlux::Vruta::SAMPLE_ACCURATE.

+ Here is the call graph for this function: