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

◆ schedule_task() [1/4]

MAYAFLUX_API void MayaFlux::schedule_task ( const std::string &  name,
const std::shared_ptr< Vruta::Routine > &  task,
bool  initialize = false 
)

Schedules a routine of any type that is already held by a shared_ptr.

Parameters
nameUnique name for the task. If empty, the scheduler generates one.
taskThe routine to schedule, for example the result of Kriya::pattern; a null routine is reported and ignored
initializeWhether to initialize the task immediately

Covers every routine type, including cross routines, which have no rvalue overload.

Definition at line 122 of file Chronie.cpp.

123{
124 get_scheduler()->add_task(task, name, initialize);
125}
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: