adapnex::core::Context

The Context class allows access to global information relevant to the execution of the application. Instances of this class are always thread‐local.

Synopsis

Declared in <adapnex/core/context.h>

class Context;

Member Functions

Name

Description

~Context [destructor] [virtual]

Destructor

GetElapsedTime [virtual]

Returns the elapsed time relative to program start.

Static Member Functions

Name

Description

Current

Returns the thread‐local Context instance for the calling thread.

Data Members

Name

signal_set

Protected Static Member Functions

Friends

Name Description

adapnex::core::TaskGroup

TaskGroup provides the interface used to schedule multiple tasks together on the same thread. This allows, for example, drivers to be scheduled together with the tasks reading or writing from their inputs or outputs. This approach allows the driver to synchronise updates with task execution so that the tasks observe a consistent view of the inputs and outputs each cycle.

Derived Classes

Name Description

MockContext

Created with MrDocs