From: Timothy Jones Date: Tue, 4 Aug 2015 04:08:40 +0000 (-0500) Subject: sim: function for testing for auto deletion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c375870abde01fa8d693e4dd95975b83c82a280d;p=gem5.git sim: function for testing for auto deletion Committed by: Nilay Vaish --- 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; }