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

◆ schedule_task() [4/4]

MAYAFLUX_API void MayaFlux::schedule_task ( const std::string &  name,
Vruta::SoundRoutine &&  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 104 of file Chronie.cpp.

105{
106 auto task_ptr = std::make_shared<Vruta::SoundRoutine>(std::move(task));
107 get_scheduler()->add_task(std::move(task_ptr), name, initialize);
108}
std::string name
Definition VKDevice.cpp:123
void initialize()
Definition main.cpp:10
std::shared_ptr< Vruta::TaskScheduler > get_scheduler()
Gets the task scheduler from the default engine.
Definition Chronie.cpp:22

References get_scheduler(), initialize(), and name.

Referenced by schedule_pattern(), and schedule_pattern().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: