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

◆ restart_task()

bool MayaFlux::Vruta::TaskScheduler::restart_task ( const std::string &  name)

Restart a named task.

Parameters
nameTask name to restart
Returns
True if found and restarted

Definition at line 73 of file Scheduler.cpp.

74{
75 auto it = find_task_by_name(name);
76 if (it != m_tasks.end()) {
77 if (it->routine && it->routine->is_active()) {
78 it->routine->restart();
79 }
80 }
81 return false;
82}
std::vector< TaskEntry > m_tasks
std::vector< TaskEntry >::iterator find_task_by_name(const std::string &name)
Find task entry by name.

References find_task_by_name(), and m_tasks.

+ Here is the call graph for this function: