diff options
-rw-r--r-- | src/sim/eventq.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index 1b00088a3..3869ca287 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -577,6 +577,13 @@ class EventWrapper : public Event setFlags(AutoDelete); } + EventWrapper(T &obj, bool del = false, Priority p = Default_Pri) + : Event(p), object(&obj) + { + if (del) + setFlags(AutoDelete); + } + void process() { (object->*F)(); } const std::string |