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

Comparing libev/ev.c (file contents):
Revision 1.158 by root, Thu Nov 29 17:28:13 2007 UTC vs.
Revision 1.159 by root, Sat Dec 1 19:48:36 2007 UTC

1342 ? EVUNLOOP_ONE 1342 ? EVUNLOOP_ONE
1343 : EVUNLOOP_CANCEL; 1343 : EVUNLOOP_CANCEL;
1344 1344
1345 call_pending (EV_A); /* in case we recurse, ensure ordering stays nice and clean */ 1345 call_pending (EV_A); /* in case we recurse, ensure ordering stays nice and clean */
1346 1346
1347 while (activecnt) 1347 for (;;)
1348 { 1348 {
1349#ifndef _WIN32 1349#ifndef _WIN32
1350 if (expect_false (curpid)) /* penalise the forking check even more */ 1350 if (expect_false (curpid)) /* penalise the forking check even more */
1351 if (expect_false (getpid () != curpid)) 1351 if (expect_false (getpid () != curpid))
1352 { 1352 {
1369 if (expect_false (preparecnt)) 1369 if (expect_false (preparecnt))
1370 { 1370 {
1371 queue_events (EV_A_ (W *)prepares, preparecnt, EV_PREPARE); 1371 queue_events (EV_A_ (W *)prepares, preparecnt, EV_PREPARE);
1372 call_pending (EV_A); 1372 call_pending (EV_A);
1373 } 1373 }
1374
1375 if (expect_false (!activecnt))
1376 break;
1374 1377
1375 /* we might have forked, so reify kernel state if necessary */ 1378 /* we might have forked, so reify kernel state if necessary */
1376 if (expect_false (postfork)) 1379 if (expect_false (postfork))
1377 loop_fork (EV_A); 1380 loop_fork (EV_A);
1378 1381

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines