ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/EV/EV.xs
(Generate patch)

Comparing Coro/EV/EV.xs (file contents):
Revision 1.2 by root, Thu Nov 1 06:34:32 2007 UTC vs.
Revision 1.3 by root, Thu Nov 1 06:58:21 2007 UTC

25static struct ev_idle idler; 25static struct ev_idle idler;
26 26
27static void 27static void
28idle_cb (struct ev_idle *w, int revents) 28idle_cb (struct ev_idle *w, int revents)
29{ 29{
30 evidle_stop (w); 30 ev_idle_stop (w);
31} 31}
32 32
33static void 33static void
34prepare_cb (struct ev_watcher *w, int revents) 34prepare_cb (struct ev_watcher *w, int revents)
35{ 35{
42 if (CORO_NREADY) 42 if (CORO_NREADY)
43 { 43 {
44 CORO_CEDE_NOTSELF; 44 CORO_CEDE_NOTSELF;
45 45
46 if (CORO_NREADY) 46 if (CORO_NREADY)
47 evidle_start (&idler); 47 ev_idle_start (&idler);
48 } 48 }
49} 49}
50 50
51MODULE = Coro::EV PACKAGE = Coro::EV 51MODULE = Coro::EV PACKAGE = Coro::EV
52 52
55BOOT: 55BOOT:
56{ 56{
57 I_EV_API ("Coro::EV"); 57 I_EV_API ("Coro::EV");
58 I_CORO_API ("Coro::Event"); 58 I_CORO_API ("Coro::Event");
59 59
60 evprepare_init (&scheduler, prepare_cb); 60 ev_prepare_init (&scheduler, prepare_cb);
61 evprepare_start (&scheduler); 61 ev_prepare_start (&scheduler);
62 62
63 evidle_init (&idler, idle_cb); 63 ev_idle_init (&idler, idle_cb);
64} 64}
65 65
66void 66void
67_timed_io_once (...) 67_timed_io_once (...)
68 CODE: 68 CODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines