adapnex::core::Application::IsStopping

Reports whether a shutdown has been requested, either via Application::Stop() or by the application receiving SIGINT or SIGTERM.

Synopsis

Declared in <adapnex/core/application.h>

static
bool
IsStopping();

Description

Tasks running their own inner loop inside Task::Update() should poll this and return promptly once it is set, as the shutdown sequence cannot proceed while a task is still executing.

Return Value

Returns true once a shutdown has been requested.

Created with MrDocs