adapnex::core::Application::CreateCyclicTaskGroup

Creates a new cyclic task group. The task group will be executed cyclically according to the given interval making it suitable for scheduling real‐time control tasks. Use TaskGroup::CreateTask to add tasks to the task group.

Synopsis

Declared in <adapnex/core/application.h>

static
std::shared_ptr<TaskGroup>
CreateCyclicTaskGroup(
    Duration period,
    unsigned int priority);

Description

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

Return Value

Returns a shared pointer to the task group instance.

Parameters

Name Description

period

The cycle period (time).

priority

The task group priority.

Created with MrDocs