From 84f0a1bd91b8af5517711fba00533daddb2359e1 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Thu, 22 Sep 2011 18:59:55 -0700 Subject: event: minor cleanup Initialize flags via the Event constructor instead of calling setFlags() in the body of the derived class's constructor. I forget exactly why, but this made life easier when implementing multi-queue support. Also rename Event::getFlags() to isFlagSet() to better match common usage, and get rid of some unused Event methods. --- src/sim/debug.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sim/debug.cc') diff --git a/src/sim/debug.cc b/src/sim/debug.cc index bd7924117..fadd89ae1 100644 --- a/src/sim/debug.cc +++ b/src/sim/debug.cc @@ -57,9 +57,8 @@ struct DebugBreakEvent : public Event // constructor: schedule at specified time // DebugBreakEvent::DebugBreakEvent() - : Event(Debug_Break_Pri) + : Event(Debug_Break_Pri, AutoDelete) { - setFlags(AutoDelete); } // -- cgit v1.2.3