summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimothy Jones <timothy.jones@cl.cam.ac.uk>2015-08-03 23:08:40 -0500
committerTimothy Jones <timothy.jones@cl.cam.ac.uk>2015-08-03 23:08:40 -0500
commitc375870abde01fa8d693e4dd95975b83c82a280d (patch)
treedca59855dcf35213414680b350da71bac7a190e8 /src
parent96091f358b97a10e261422aebefd6b5c187c2a60 (diff)
downloadgem5-c375870abde01fa8d693e4dd95975b83c82a280d.tar.xz
sim: function for testing for auto deletion
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src')
-rw-r--r--src/sim/eventq.hh3
1 files changed, 3 insertions, 0 deletions
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; }