39c39
< class SimExitEvent : public Event
---
> class SimLoopExitEvent : public Event
47c47
< SimExitEvent(const std::string &_cause, int c = 0)
---
> SimLoopExitEvent(Tick _when, const std::string &_cause, int c = 0)
50c50
< { schedule(curTick); }
---
> { setFlags(IsExitEvent); schedule(_when); }
52,57c52,53
< SimExitEvent(Tick _when, const std::string &_cause, int c = 0)
< : Event(&mainEventQueue, Sim_Exit_Pri), cause(_cause),
< code(c)
< { schedule(_when); }
<
< SimExitEvent(EventQueue *q, const std::string &_cause, int c = 0)
---
> SimLoopExitEvent(EventQueue *q,
> Tick _when, const std::string &_cause, int c = 0)
59c55
< { schedule(curTick); }
---
> { setFlags(IsExitEvent); schedule(_when); }
61,64c57,58
< SimExitEvent(EventQueue *q, Tick _when, const std::string &_cause,
< int c = 0)
< : Event(q, Sim_Exit_Pri), cause(_cause), code(c)
< { schedule(_when); }
---
> std::string getCause() { return cause; }
> int getCode() { return code; }