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

◆ schedule_task() [1/3]

MAYAFLUX_API void MayaFlux::schedule_task ( const std::string &  name,
Vruta::FreeRoutine &&  task,
bool  initialize = false 
)

Schedules a new free routine conditional task.

Parameters
nameUnique name for the task
taskThe sound routine to schedule
initializeWhether to initialize the task immediately

Definition at line 112 of file Chronie.cpp.

113{
114 auto task_ptr = std::make_shared<Vruta::FreeRoutine>(std::move(task));
115 get_scheduler()->add_task(std::move(task_ptr), name, initialize);
116}
void initialize()
Definition main.cpp:11
std::shared_ptr< Vruta::TaskScheduler > get_scheduler()
Gets the task scheduler from the default engine.
Definition Chronie.cpp:22

References get_scheduler(), and initialize().

+ Here is the call graph for this function: