Base module
Runner::Context
Context 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
| Return | Name | Description |
|---|---|---|
std::thread::id | tid | |
std::atomic< bool > | running | |
std::atomic< bool > | cancelled | |
bool | repeating |
tid
std::thread::id tidrunning
std::atomic< bool > runningcancelled
std::atomic< bool > cancelledrepeating
bool repeating = falsePublic Methods
| Return | Name | Description |
|---|---|---|
void | reset inline | 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 | Default 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.
