You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And a sync processTimers can be created without any threads, by creating a list of pending timers.
publicstaticfunctionprocessTimers() {
while(true) {
varnextTimer=findNextTimer(); // Get one with least due timeif (nextTimer==null)
break;
vardelay=nextTimer.due-stamp();
if (delay>0)
sleep(delay);
nextTimer.run();
}
}
Whether you want to automagically call processTimers() via macro or otherwise is a minor matter, but explicit calling is not that hard.
No description provided.
The text was updated successfully, but these errors were encountered: