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

Comparing libev/ev.c (file contents):
Revision 1.94 by root, Sun Nov 11 01:29:49 2007 UTC vs.
Revision 1.95 by root, Sun Nov 11 01:42:13 2007 UTC

1434 1434
1435void 1435void
1436ev_idle_stop (EV_P_ struct ev_idle *w) 1436ev_idle_stop (EV_P_ struct ev_idle *w)
1437{ 1437{
1438 ev_clear_pending (EV_A_ (W)w); 1438 ev_clear_pending (EV_A_ (W)w);
1439 if (!ev_is_active (w)) 1439 if (ev_is_active (w))
1440 return; 1440 return;
1441 1441
1442 idles [((W)w)->active - 1] = idles [--idlecnt]; 1442 idles [((W)w)->active - 1] = idles [--idlecnt];
1443 ev_stop (EV_A_ (W)w); 1443 ev_stop (EV_A_ (W)w);
1444} 1444}
1456 1456
1457void 1457void
1458ev_prepare_stop (EV_P_ struct ev_prepare *w) 1458ev_prepare_stop (EV_P_ struct ev_prepare *w)
1459{ 1459{
1460 ev_clear_pending (EV_A_ (W)w); 1460 ev_clear_pending (EV_A_ (W)w);
1461 if (!ev_is_active (w)) 1461 if (ev_is_active (w))
1462 return; 1462 return;
1463 1463
1464 prepares [((W)w)->active - 1] = prepares [--preparecnt]; 1464 prepares [((W)w)->active - 1] = prepares [--preparecnt];
1465 ev_stop (EV_A_ (W)w); 1465 ev_stop (EV_A_ (W)w);
1466} 1466}
1549 1549
1550void 1550void
1551ev_child_stop (EV_P_ struct ev_child *w) 1551ev_child_stop (EV_P_ struct ev_child *w)
1552{ 1552{
1553 ev_clear_pending (EV_A_ (W)w); 1553 ev_clear_pending (EV_A_ (W)w);
1554 if (ev_is_active (w)) 1554 if (!ev_is_active (w))
1555 return; 1555 return;
1556 1556
1557 wlist_del ((WL *)&childs [w->pid & (PID_HASHSIZE - 1)], (WL)w); 1557 wlist_del ((WL *)&childs [w->pid & (PID_HASHSIZE - 1)], (WL)w);
1558 ev_stop (EV_A_ (W)w); 1558 ev_stop (EV_A_ (W)w);
1559} 1559}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines