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
This intermediate object allows us to garecefully handle late invokebacks and so avoid the need for deferred destruction of 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 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. |
Context inline | Default constructor; calls reset() 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.
Context
inline
inline Context()Defined in src/base/include/icy/runner.h:103
Default constructor; calls reset() to initialize fields.
