Process tasks in a specific domain with default algorithm.
257{
260 return;
261 }
262
264 if (tasks.empty()) {
265 auto& clock = *clock_it->second;
266 clock.tick(processing_units);
267 return;
268 }
269
270 auto& clock = *clock_it->second;
271
272 for (uint64_t i = 0; i < processing_units; i++) {
273 uint64_t current_context = clock.current_position();
274
275 for (auto& routine : tasks) {
276 if (routine && routine->is_active()) {
277 if (routine->requires_clock_sync()) {
278 if (current_context >= routine->next_execution()) {
280 }
281 } else {
283 }
284 }
285 }
286
287 clock.tick(1);
288 }
289}
static MayaFlux::Nodes::ProcessingToken token
std::vector< std::shared_ptr< Routine > > get_tasks_for_token(ProcessingToken token) const
Get all tasks for a specific processing domain.
std::unordered_map< ProcessingToken, std::unique_ptr< IClock > > m_token_clocks
Clock instances for each processing domain.
@ SAMPLE_BASED
Sample-accurate delay (audio domain)