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

◆ schedule_task() [3/4]

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 110 of file Chronie.cpp.

111{
112 auto task_ptr = std::make_shared<Vruta::GraphicsRoutine>(std::move(task));
113 get_scheduler()->add_task(std::move(task_ptr), name, initialize);
114}
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.

+ Here is the call graph for this function: