sim: function for testing for auto deletion
authorTimothy Jones <timothy.jones@cl.cam.ac.uk>
Tue, 4 Aug 2015 04:08:40 +0000 (23:08 -0500)
committerTimothy Jones <timothy.jones@cl.cam.ac.uk>
Tue, 4 Aug 2015 04:08:40 +0000 (23:08 -0500)
Committed by: Nilay Vaish <nilay@cs.wisc.edu>

src/sim/eventq.hh

index 92cd241a63ee76c4e99474891c93d06670e526eb..6f393fc338751ba2b2c20fe1427cb5267b2a7587 100644 (file)
@@ -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; }