ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.17 by root, Wed Oct 31 14:44:15 2007 UTC vs.
Revision 1.18 by root, Wed Oct 31 16:29:52 2007 UTC

416} 416}
417 417
418static void 418static void
419call_pending () 419call_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
437static void 433static void
438timers_reify () 434timers_reify ()
439{ 435{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines