MayaFlux 0.4.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 162 of file Scheduler.cpp.

163{
164 if (token == ProcessingToken::CONDITIONAL) {
165 std::vector<std::shared_ptr<Routine>> result;
166 for (const auto& e : m_conditional_tasks) {
167 if (e.routine)
168 result.push_back(e.routine);
169 }
170 return result;
171 }
172
173 std::vector<std::shared_ptr<Routine>> result;
174 for (const auto& entry : m_tasks) {
175 if (entry.routine && entry.routine->get_processing_token() == token) {
176 result.push_back(entry.routine);
177 }
178 }
179 return result;
180}
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: