From c375870abde01fa8d693e4dd95975b83c82a280d Mon Sep 17 00:00:00 2001 From: Timothy Jones Date: Mon, 3 Aug 2015 23:08:40 -0500 Subject: [PATCH] sim: function for testing for auto deletion Committed by: Nilay Vaish --- src/sim/eventq.hh | 3 +++ 1 file changed, 3 insertions(+) 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; }