diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index 92cd241a6..6f393fc33 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -338,6 +338,9 @@ class Event : public EventBase, public Serializable /// See if this is a SimExitEvent (without resorting to RTTI) bool isExitEvent() const { return flags.isSet(IsExitEvent); } + /// Check whether this event will auto-delete + bool isAutoDelete() const { return flags.isSet(AutoDelete); } + /// Get the time that the event is scheduled Tick when() const { return _when; }