… | |
… | |
416 | } |
416 | } |
417 | |
417 | |
418 | static void |
418 | static void |
419 | call_pending () |
419 | call_pending () |
420 | { |
420 | { |
421 | int i; |
421 | while (pendingcnt) |
422 | |
|
|
423 | for (i = 0; i < pendingcnt; ++i) |
|
|
424 | { |
422 | { |
425 | ANPENDING *p = pendings + i; |
423 | ANPENDING *p = pendings + --pendingcnt; |
426 | |
424 | |
427 | if (p->w) |
425 | if (p->w) |
428 | { |
426 | { |
429 | p->w->pending = 0; |
427 | p->w->pending = 0; |
430 | p->w->cb (p->w, p->events); |
428 | p->w->cb (p->w, p->events); |
431 | } |
429 | } |
432 | } |
430 | } |
433 | |
|
|
434 | pendingcnt = 0; |
|
|
435 | } |
431 | } |
436 | |
432 | |
437 | static void |
433 | static void |
438 | timers_reify () |
434 | timers_reify () |
439 | { |
435 | { |