adapnex::core::TaskGroup::CreateTask

CreateTask instantiates a task and adds it to the task group for scheduling. Tasks may also be created from the Setup() method of another task in the same task group, and take part in the same setup phase.

Synopsis

Declared in <adapnex/core/task_group.h>

template<
    typename TaskT,
    typename... Args>
std::shared_ptr<TaskT>
CreateTask(Args&&... args);

Description

This method must only be called during the setup phase of the application.

Return Value

Returns a shared pointer to the created task.

Parameters

Name

Description

args

Constructor arguments forwarded to the task.

Created with MrDocs