adapnex::core::Application::CreateFreewheelingTaskGroup

Creates a freewheeling task group. The returned task group has no cyclic execution interval. Tasks are called repeatedly as quickly as possible. Freewheeling task groups are suitable for background tasks or for handling blocking operations outside the main control logic.

Synopsis

Declared in <adapnex/core/application.h>

static
std::shared_ptr<TaskGroup>
CreateFreewheelingTaskGroup(FreewheelingTaskGroupConfig const& config = {});

Description

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

Exceptions

Name

Thrown on

std::invalid_argument

if the priority is above 31.

Return Value

Returns a shared pointer to the task group instance.

Parameters

Name

Description

config

The scheduling parameters of the task group.

Created with MrDocs