Allows a reaction to terminate the program. More...
#include <xronos/sdk/reaction.hh>
Public Member Functions | |
| ShutdownEffect (Shutdown &shutdown, const ReactionContext &context) | |
| Constructor. | |
| void | trigger_shutdown () |
| Terminate the currently running reactor program. | |
Allows a reaction to terminate the program.
| xronos::sdk::BaseReaction::ShutdownEffect::ShutdownEffect | ( | Shutdown & | shutdown, |
| const ReactionContext & | context ) |
Constructor.
| shutdown | The shutdown event source used to trigger termination of the program. |
| context | The context of the reaction the effect is declared for. Can be obtained using context(). |
| void xronos::sdk::BaseReaction::ShutdownEffect::trigger_shutdown | ( | ) |
Terminate the currently running reactor program.
Terminates a running program at the next convenience. After completing all currently active reactions, this triggers the Shutdown event sources. Once all reactions triggered by Shutdown are processed, the program terminates.
| ValidationError | If called before execution has started. |