Add new EventWrapper constructor that takes a Tick value
and schedules the event immediately. --HG-- extra : convert_revision : a84e729a5ef3632cbe6cff858c453c782707d983
This commit is contained in:
@@ -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 §ion)
|
||||
Tick intrEventTick;
|
||||
UNSERIALIZE_SCALAR(intrEventTick);
|
||||
if (intrEventTick) {
|
||||
intrEvent = new IntrEvent(this, true);
|
||||
intrEvent->schedule(intrEventTick);
|
||||
intrEvent = new IntrEvent(this, intrEventTick, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 §ion)
|
||||
Tick intrEventTick;
|
||||
UNSERIALIZE_SCALAR(intrEventTick);
|
||||
if (intrEventTick) {
|
||||
intrEvent = new IntrEvent(this, true);
|
||||
intrEvent->schedule(intrEventTick);
|
||||
intrEvent = new IntrEvent(this, intrEventTick, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user