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

Comparing libev/ev.c (file contents):
Revision 1.136 by root, Sat Nov 24 07:14:26 2007 UTC vs.
Revision 1.138 by root, Sat Nov 24 09:48:38 2007 UTC

1315 timers_reify (EV_A); /* relative timers called last */ 1315 timers_reify (EV_A); /* relative timers called last */
1316#if EV_PERIODICS 1316#if EV_PERIODICS
1317 periodics_reify (EV_A); /* absolute timers called first */ 1317 periodics_reify (EV_A); /* absolute timers called first */
1318#endif 1318#endif
1319 1319
1320 /* queue idle watchers unless io or timers are pending */ 1320 /* queue idle watchers unless other events are pending */
1321 if (idlecnt && !any_pending (EV_A)) 1321 if (idlecnt && !any_pending (EV_A))
1322 queue_events (EV_A_ (W *)idles, idlecnt, EV_IDLE); 1322 queue_events (EV_A_ (W *)idles, idlecnt, EV_IDLE);
1323 1323
1324 /* queue check watchers, to be executed first */ 1324 /* queue check watchers, to be executed first */
1325 if (expect_false (checkcnt)) 1325 if (expect_false (checkcnt))
1672 ev_stop (EV_A_ (W)w); 1672 ev_stop (EV_A_ (W)w);
1673} 1673}
1674 1674
1675#if EV_MULTIPLICITY 1675#if EV_MULTIPLICITY
1676void 1676void
1677ev_embed_loop (EV_P_ ev_embed *w) 1677ev_embed_sweep (EV_P_ ev_embed *w)
1678{ 1678{
1679 ev_loop (w->loop, EVLOOP_NONBLOCK); 1679 ev_loop (w->loop, EVLOOP_NONBLOCK);
1680} 1680}
1681 1681
1682static void 1682static void
1685 ev_embed *w = (ev_embed *)(((char *)io) - offsetof (ev_embed, io)); 1685 ev_embed *w = (ev_embed *)(((char *)io) - offsetof (ev_embed, io));
1686 1686
1687 if (ev_cb (w)) 1687 if (ev_cb (w))
1688 ev_feed_event (EV_A_ (W)w, EV_EMBED); 1688 ev_feed_event (EV_A_ (W)w, EV_EMBED);
1689 else 1689 else
1690 ev_embed_loop (loop, w); 1690 ev_embed_sweep (loop, w);
1691} 1691}
1692 1692
1693void 1693void
1694ev_embed_start (EV_P_ ev_embed *w) 1694ev_embed_start (EV_P_ ev_embed *w)
1695{ 1695{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines