nn::boss::FgOnlyTask Class

Syntax

class FgOnlyTask : public nn::boss::Task

Description

A class for representing tasks that are only executed immediately. Use this to register or unregister tasks that are only executed immediately, to control tasks, and for other operations.

Use this class for tasks that will only be run immediately by the boss::Task::StartImmediate function. With this class, a task only exists during its immediate execution and is not persistent. The guidelines restrict the number of tasks that a single application can register, but this restriction does not count immediate-execution tasks. As a result, this class allows an application to use even more tasks. Always use this class for tasks that are only run immediately: there is no benefit to using tasks that are only run immediately without this class, even to avoid restrictions on the number of registered tasks.

Use this class just as you would use boss::Task. However, you cannot use functions that give instructions to execute in the background (boss::Task::Start and boss::Task::StartBgImmediate).

The task ID for immediate-execution tasks is fixed to FGONLYT. This task ID cannot be changed. The Initialize function does not need to be called to initialize an instance.

Member Functions

FgOnlyTask Constructor.
V ~FgOnlyTask Destructor.
Start Because this class is for immediately executing tasks only, do not use this function when background execution is indicated. An error will result if called.
StartBgImmediate Because this class is for immediately executing tasks only, do not use this function when background execution is indicated. An error will result if called.
protected Initialize This function does not need to be called for immediate-execution tasks. An error results if called.

Class Hierarchy

nn::boss::Task
  nn::boss::FgOnlyTask

Revision History

2011/10/27
Initial version.

CONFIDENTIAL