Add new EventWrapper constructor that takes a Tick value

and schedules the event immediately.

--HG--
extra : convert_revision : a84e729a5ef3632cbe6cff858c453c782707d983
This commit is contained in:
Steve Reinhardt
2007-05-20 21:43:01 -07:00
parent 87adc37e91
commit 05d14cf3e2
6 changed files with 27 additions and 21 deletions

View File

@@ -1270,8 +1270,7 @@ NSGigE::cpuIntrPost(Tick when)
if (intrEvent)
intrEvent->squash();
intrEvent = new IntrEvent(this, true);
intrEvent->schedule(intrTick);
intrEvent = new IntrEvent(this, intrTick, true);
}
void
@@ -2770,8 +2769,7 @@ NSGigE::unserialize(Checkpoint *cp, const std::string &section)
Tick intrEventTick;
UNSERIALIZE_SCALAR(intrEventTick);
if (intrEventTick) {
intrEvent = new IntrEvent(this, true);
intrEvent->schedule(intrEventTick);
intrEvent = new IntrEvent(this, intrEventTick, true);
}
}

View File

@@ -630,8 +630,7 @@ Base::cpuIntrPost(Tick when)
if (intrEvent)
intrEvent->squash();
intrEvent = new IntrEvent(this, true);
intrEvent->schedule(intrTick);
intrEvent = new IntrEvent(this, intrTick, true);
}
void
@@ -1339,8 +1338,7 @@ Base::unserialize(Checkpoint *cp, const std::string &section)
Tick intrEventTick;
UNSERIALIZE_SCALAR(intrEventTick);
if (intrEventTick) {
intrEvent = new IntrEvent(this, true);
intrEvent->schedule(intrEventTick);
intrEvent = new IntrEvent(this, intrEventTick, true);
}
}