… | |
… | |
17 | av_push (av, newSViv (revents)); |
17 | av_push (av, newSViv (revents)); |
18 | CORO_READY (AvARRAY (av)[0]); |
18 | CORO_READY (AvARRAY (av)[0]); |
19 | SvREFCNT_dec (av); |
19 | SvREFCNT_dec (av); |
20 | } |
20 | } |
21 | |
21 | |
22 | #define ONCE_INIT AV *av = GvAV (PL_defgv); |
22 | #define ONCE_INIT AV *av = GvAV (PL_defgv) |
23 | #define ONCE_DONE av_clear (av); av_push (av, newRV_inc (CORO_CURRENT)); |
23 | #define ONCE_DONE av_clear (av); av_push (av, newRV_inc (CORO_CURRENT)) |
24 | |
24 | |
25 | static struct ev_prepare scheduler; |
25 | static struct ev_prepare scheduler; |
26 | static struct ev_idle idler; |
26 | static struct ev_idle idler; |
27 | static int inhibit; |
27 | static int inhibit; |
28 | |
28 | |