Allows a reaction to terminate the program.
More...
#include <xronos/sdk/reaction.hh>
Allows a reaction to terminate the program.
◆ ShutdownEffect()
Constructor.
- Parameters
-
| 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(). |
◆ trigger_shutdown()
| void xronos::sdk::BaseReaction::ShutdownEffect::trigger_shutdown |
( |
| ) |
|
|
noexcept |
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.
The documentation for this class was generated from the following file: