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

◆ get_tasks_for_token()

std::vector< std::shared_ptr< Routine > > MayaFlux::Vruta::TaskScheduler::get_tasks_for_token ( ProcessingToken  token) const

Get all tasks for a specific processing domain.

Parameters
tokenProcessing domain
Returns
Vector of tasks in the domain

Definition at line 260 of file Scheduler.cpp.

261{
262 if (token == ProcessingToken::CONDITIONAL) {
263 std::vector<std::shared_ptr<Routine>> result;
264 for (const auto& e : m_conditional_tasks) {
265 if (e.routine)
266 result.push_back(e.routine);
267 }
268 return result;
269 }
270
271 std::vector<std::shared_ptr<Routine>> result;
272 for (const auto& entry : m_tasks) {
273 if (entry.routine && entry.routine->get_processing_token() == token) {
274 result.push_back(entry.routine);
275 }
276 }
277 return result;
278}
std::vector< TaskEntry > m_tasks
std::vector< TaskEntry > m_conditional_tasks
@ CONDITIONAL
Condition-driven execution - resume when a caller-supplied predicate returns true.

References MayaFlux::Vruta::CONDITIONAL, m_conditional_tasks, and m_tasks.

Referenced by process_buffer_cycle_tasks(), process_default(), process_token(), and pump_cross().

+ Here is the caller graph for this function: