Base module
Runner::Context
Context object which we send to the thread context.
Context
#include <icy/runner.h>struct ContextDefined in src/base/include/icy/runner.h:87
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.
List of all members
| Name | Kind | Owner |
|---|---|---|
tid | variable | Declared here |
running | variable | Declared here |
cancelled | variable | Declared here |
repeating | variable | Declared here |
reset | function | Declared here |
Context | function | Declared here |
Public Attributes
| Return | Name | Description |
|---|---|---|
std::thread::id | tid | |
std::atomic< bool > | running | |
std::atomic< bool > | cancelled | |
bool | repeating |
tid
std::thread::id tidDefined in src/base/include/icy/runner.h:89
running
std::atomic< bool > runningDefined in src/base/include/icy/runner.h:90
cancelled
std::atomic< bool > cancelledDefined in src/base/include/icy/runner.h:91
repeating
bool repeating = falseDefined in src/base/include/icy/runner.h:92
Public 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()Defined in src/base/include/icy/runner.h:96
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()Defined in src/base/include/icy/runner.h:103
Default constructor; calls [reset()](#reset-6) to initialize fields.
