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

◆ get_task_names() [2/2]

std::vector< std::string > MayaFlux::Vruta::TaskScheduler::get_task_names ( ProcessingToken  token) const

Get task names for a specific processing domain.

Parameters
tokenProcessing domain to filter by.
Returns
Vector of task names active in that domain.

Definition at line 192 of file Scheduler.cpp.

193{
194 if (token == ProcessingToken::CONDITIONAL) {
195 std::vector<std::string> names;
196 for (const auto& e : m_conditional_tasks) {
197 if (e.routine)
198 names.push_back(e.name);
199 }
200 return names;
201 }
202
203 std::vector<std::string> names;
204 for (const auto& entry : m_tasks) {
205 if (entry.routine && entry.routine->get_processing_token() == token)
206 names.push_back(entry.name);
207 }
208 return names;
209}
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.