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

Comparing libev/ev.c (file contents):
Revision 1.428 by root, Tue May 8 15:44:09 2012 UTC vs.
Revision 1.429 by root, Tue May 8 15:50:49 2012 UTC

2563#if EV_FEATURE_API 2563#if EV_FEATURE_API
2564void ecb_cold 2564void ecb_cold
2565ev_verify (EV_P) EV_THROW 2565ev_verify (EV_P) EV_THROW
2566{ 2566{
2567#if EV_VERIFY 2567#if EV_VERIFY
2568 int i, j; 2568 int i;
2569 WL w, w2; 2569 WL w, w2;
2570 2570
2571 assert (activecnt >= -1); 2571 assert (activecnt >= -1);
2572 2572
2573 assert (fdchangemax >= fdchangecnt); 2573 assert (fdchangemax >= fdchangecnt);
2574 for (i = 0; i < fdchangecnt; ++i) 2574 for (i = 0; i < fdchangecnt; ++i)
2575 assert (("libev: negative fd in fdchanges", fdchanges [i] >= 0)); 2575 assert (("libev: negative fd in fdchanges", fdchanges [i] >= 0));
2576 2576
2577 assert (anfdmax >= 0); 2577 assert (anfdmax >= 0);
2578 for (i = j = 0; i < anfdmax; ++i) 2578 for (i = 0; i < anfdmax; ++i)
2579 {
2580 int j = 0;
2581
2579 for (w = w2 = anfds [i].head; w; w = w->next) 2582 for (w = w2 = anfds [i].head; w; w = w->next)
2580 { 2583 {
2581 verify_watcher (EV_A_ (W)w); 2584 verify_watcher (EV_A_ (W)w);
2582 2585
2583 if (j++ & 1) 2586 if (j++ & 1)
2584 { 2587 {
2585 assert (("libev: io watcher list contains a loop", w != w2)); 2588 assert (("libev: io watcher list contains a loop", w != w2));
2586 w2 = w2->next; 2589 w2 = w2->next;
2587 } 2590 }
2588 2591
2589 assert (("libev: inactive fd watcher on anfd list", ev_active (w) == 1)); 2592 assert (("libev: inactive fd watcher on anfd list", ev_active (w) == 1));
2590 assert (("libev: fd mismatch between watcher and anfd", ((ev_io *)w)->fd == i)); 2593 assert (("libev: fd mismatch between watcher and anfd", ((ev_io *)w)->fd == i));
2591 } 2594 }
2595 }
2592 2596
2593 assert (timermax >= timercnt); 2597 assert (timermax >= timercnt);
2594 verify_heap (EV_A_ timers, timercnt); 2598 verify_heap (EV_A_ timers, timercnt);
2595 2599
2596#if EV_PERIODIC_ENABLE 2600#if EV_PERIODIC_ENABLE

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines