32 #ifndef __SIM_EXIT_HH__
33 #define __SIM_EXIT_HH__
52 void exitSimLoop(
const std::string &message,
int exit_code = 0,
56 #endif // __SIM_EXIT_HH__
void registerExitCallback(Callback *)
Register a callback to be called when Python exits.
Tick curTick()
The universal simulation clock.
uint64_t Tick
Tick count type.
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
void exitSimLoop(const std::string &message, int exit_code=0, Tick when=curTick(), Tick repeat=0, bool serialize=false)
Schedule an event to exit the simulation loop (returning to Python) at the end of the current cycle (...
void serialize(CheckpointOut &cp) const override