Base module

Runner::Context

[Context]({#ref structicy_1_1Runner_1_1Context #}) object which we send to the thread context.

Context

#include <icy/runner.h>

Context object which we send to the thread context.

This intermediate object allows us to garecefully handle late invokebacks and so avoid the need for deferred destruction of [Runner](icy-Runner.html#runner) objects.

Public Attributes

ReturnNameDescription
std::thread::idtid
std::atomic< bool >running
std::atomic< bool >cancelled
boolrepeating

tid

std::thread::id tid

running

std::atomic< bool > running

cancelled

std::atomic< bool > cancelled

repeating

bool repeating = false

Public Methods

ReturnNameDescription
voidreset inlineResets the context to its initial state so it can be reused. The implementation must call this before restarting a [Runner](icy-Runner.html#runner).
Context inlineDefault constructor; calls [reset()](#reset-6) to initialize fields.

reset

inline

inline void reset()

Resets the context to its initial state so it can be reused. The implementation must call this before restarting a [Runner](icy-Runner.html#runner).


Context

inline

inline Context()

Default constructor; calls [reset()](#reset-6) to initialize fields.