sim: function for testing for auto deletion

Committed by: Nilay Vaish <nilay@cs.wisc.edu>
This commit is contained in:
Timothy Jones 2015-08-03 23:08:40 -05:00
parent 96091f358b
commit c375870abd

View 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; }