MayaFlux 0.3.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 389 of file Scheduler.cpp.

390{
393
394 for (auto& task : tasks) {
395 if (task && task->is_active()) {
396 if (task->requires_clock_sync()) {
397 if (m_current_buffer_cycle >= task->next_execution()) {
398 task->try_resume_with_context(m_current_buffer_cycle, DelayContext::BUFFER_BASED);
399 }
400 } else {
401 task->try_resume_with_context(m_current_buffer_cycle, DelayContext::BUFFER_BASED);
402 }
403 }
404 }
405}
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: