// but if you are doing this on intervals, don't forget to make another
if (repeat) {
assert(getFlags(IsMainQueue));
- mainEventQueue.schedule(this, curTick + repeat);
+ mainEventQueue.schedule(this, curTick() + repeat);
}
}
}
CountedDrainEvent::CountedDrainEvent()
- : SimLoopExitEvent("Finished drain", 0), count(0)
+ : count(0)
{ }
void
CountedDrainEvent::process()
{
if (--count == 0)
- exitSimLoop(cause, code);
+ exitSimLoop("Finished drain", 0);
}
//