sim: function for testing for auto deletion
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
This commit is contained in:
parent
96091f358b
commit
c375870abd
1 changed files with 3 additions and 0 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue