static void ScheduleElapsedTimers(TimerGroup timerGroup, long now) { TimerQueue timerQueue = timerGroup.TimerQueue; while (timerQueue.Count > 0) { IOThreadTimer timer = timerQueue.MinTimer; long timeDiff = timer.dueTime - now; if (timeDiff <= timer.maxSkew) { timerQueue.DeleteMinTimer(); ActionItem.Schedule(timer.callback, timer.callbackState); } else { break; } } }
void ScheduleWait() { ActionItem.Schedule(this.onWaitCallback, null); this.waitScheduled = true; }
private void ScheduleWait() { ActionItem.Schedule(_onWaitCallback, null); _waitScheduled = true; }