adapnex::core::TaskGroup::CreateTask

CreateTask instantiates a task and adds it to the task group for scheduling.

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