MayaFlux 0.2.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 393 of file Scheduler.cpp.

394{
397
398 for (auto& task : tasks) {
399 if (task && task->is_active()) {
400 if (task->requires_clock_sync()) {
401 if (m_current_buffer_cycle >= task->next_execution()) {
402 task->try_resume_with_context(m_current_buffer_cycle, DelayContext::BUFFER_BASED);
403 }
404 } else {
405 task->try_resume_with_context(m_current_buffer_cycle, DelayContext::BUFFER_BASED);
406 }
407 }
408 }
409}
std::vector< std::shared_ptr< Routine > > get_tasks_for_token(ProcessingToken token) const
Get all tasks for a specific processing domain.
Definition Scheduler.cpp:92
@ 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: