MayaFlux 0.2.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 75 of file Scheduler.cpp.

76{
77 auto it = find_task_by_name(name);
78 if (it != m_tasks.end()) {
79 if (it->routine && it->routine->is_active()) {
80 it->routine->restart();
81 }
82 }
83 return false;
84}
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: