diff options
author | root <root> | 2007-12-22 11:44:51 +0000 |
---|---|---|
committer | root <root> | 2007-12-22 11:44:51 +0000 |
commit | f3aa86bc9a0bc4af285ac341b8edf2ff09309f67 (patch) | |
tree | 0ecb9f26839074cf1efee785721332ab1016797b /ev.c | |
parent | 9a8ae42b42c41e9adaf6de38319d2c71a2d67758 (diff) |
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -2268,7 +2268,7 @@ embed_io_cb (EV_P_ ev_io *io, int revents) if (ev_cb (w)) ev_feed_event (EV_A_ (W)w, EV_EMBED); else - ev_embed_sweep (loop, w); + ev_loop (w->other, EVLOOP_NONBLOCK); } static void @@ -2276,9 +2276,25 @@ embed_prepare_cb (EV_P_ ev_prepare *prepare, int revents) { ev_embed *w = (ev_embed *)(((char *)prepare) - offsetof (ev_embed, prepare)); - fd_reify (w->other); + { + struct ev_loop *loop = w->other; + + while (fdchangecnt) + { + fd_reify (EV_A); + ev_loop (EV_A_ EVLOOP_NONBLOCK); + } + } } +#if 0 +static void +embed_idle_cb (EV_P_ ev_idle *idle, int revents) +{ + ev_idle_stop (EV_A_ idle); +} +#endif + void ev_embed_start (EV_P_ ev_embed *w) { @@ -2298,6 +2314,8 @@ ev_embed_start (EV_P_ ev_embed *w) ev_set_priority (&w->prepare, EV_MINPRI); ev_prepare_start (EV_A_ &w->prepare); + /*ev_idle_init (&w->idle, e,bed_idle_cb);*/ + ev_start (EV_A_ (W)w, 1); } |