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

Comparing libev/ev.c (file contents):
Revision 1.187 by root, Sun Dec 16 21:54:28 2007 UTC vs.
Revision 1.188 by root, Thu Dec 20 07:12:57 2007 UTC

2182 2182
2183#if EV_EMBED_ENABLE 2183#if EV_EMBED_ENABLE
2184void noinline 2184void noinline
2185ev_embed_sweep (EV_P_ ev_embed *w) 2185ev_embed_sweep (EV_P_ ev_embed *w)
2186{ 2186{
2187 ev_loop (w->loop, EVLOOP_NONBLOCK); 2187 ev_loop (w->other, EVLOOP_NONBLOCK);
2188} 2188}
2189 2189
2190static void 2190static void
2191embed_cb (EV_P_ ev_io *io, int revents) 2191embed_cb (EV_P_ ev_io *io, int revents)
2192{ 2192{
2203{ 2203{
2204 if (expect_false (ev_is_active (w))) 2204 if (expect_false (ev_is_active (w)))
2205 return; 2205 return;
2206 2206
2207 { 2207 {
2208 struct ev_loop *loop = w->loop; 2208 struct ev_loop *loop = w->other;
2209 assert (("loop to be embedded is not embeddable", backend & ev_embeddable_backends ())); 2209 assert (("loop to be embedded is not embeddable", backend & ev_embeddable_backends ()));
2210 ev_io_init (&w->io, embed_cb, backend_fd, EV_READ); 2210 ev_io_init (&w->io, embed_cb, backend_fd, EV_READ);
2211 } 2211 }
2212 2212
2213 ev_set_priority (&w->io, ev_priority (w)); 2213 ev_set_priority (&w->io, ev_priority (w));
2320 ev_timer_set (&once->to, timeout, 0.); 2320 ev_timer_set (&once->to, timeout, 0.);
2321 ev_timer_start (EV_A_ &once->to); 2321 ev_timer_start (EV_A_ &once->to);
2322 } 2322 }
2323} 2323}
2324 2324
2325#if EV_MULTIPLICITY
2326 #include "ev_wrap.h"
2327#endif
2328
2325#ifdef __cplusplus 2329#ifdef __cplusplus
2326} 2330}
2327#endif 2331#endif
2328 2332

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines