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

◆ schedule_task() [2/3]

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

Schedules a new sound routine task.

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

Definition at line 106 of file Chronie.cpp.

107{
108 auto task_ptr = std::make_shared<Vruta::GraphicsRoutine>(std::move(task));
109 get_scheduler()->add_task(std::move(task_ptr), name, initialize);
110}
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: