… | |
… | |
167 | PUSHs (sv_self); |
167 | PUSHs (sv_self); |
168 | PUSHs (sv_events); |
168 | PUSHs (sv_events); |
169 | |
169 | |
170 | PUTBACK; |
170 | PUTBACK; |
171 | call_sv (w->cb_sv, G_DISCARD | G_VOID | G_EVAL); |
171 | call_sv (w->cb_sv, G_DISCARD | G_VOID | G_EVAL); |
172 | SP = PL_stack_base + mark; PUTBACK; |
|
|
173 | |
172 | |
174 | SvREFCNT_dec (sv_self); |
173 | SvREFCNT_dec (sv_self); |
175 | SvREFCNT_dec (sv_status); |
174 | SvREFCNT_dec (sv_status); |
176 | |
175 | |
177 | if (sv_events_cache) |
176 | if (sv_events_cache) |
… | |
… | |
182 | if (SvTRUE (ERRSV)) |
181 | if (SvTRUE (ERRSV)) |
183 | { |
182 | { |
184 | PUSHMARK (SP); |
183 | PUSHMARK (SP); |
185 | PUTBACK; |
184 | PUTBACK; |
186 | call_sv (get_sv ("EV::DIED", 1), G_DISCARD | G_VOID | G_EVAL | G_KEEPERR); |
185 | call_sv (get_sv ("EV::DIED", 1), G_DISCARD | G_VOID | G_EVAL | G_KEEPERR); |
187 | SP = PL_stack_base + mark; PUTBACK; |
|
|
188 | } |
186 | } |
|
|
187 | |
|
|
188 | SP = PL_stack_base + mark; |
|
|
189 | PUTBACK; |
189 | } |
190 | } |
190 | |
191 | |
191 | static ev_tstamp |
192 | static ev_tstamp |
192 | e_periodic_cb (struct ev_periodic *w, ev_tstamp now) |
193 | e_periodic_cb (struct ev_periodic *w, ev_tstamp now) |
193 | { |
194 | { |
… | |
… | |
320 | const_iv (EV_, CHECK) |
321 | const_iv (EV_, CHECK) |
321 | const_iv (EV_, ERROR) |
322 | const_iv (EV_, ERROR) |
322 | |
323 | |
323 | const_iv (EV, LOOP_ONESHOT) |
324 | const_iv (EV, LOOP_ONESHOT) |
324 | const_iv (EV, LOOP_NONBLOCK) |
325 | const_iv (EV, LOOP_NONBLOCK) |
|
|
326 | const_iv (EV, UNLOOP_ONE) |
|
|
327 | const_iv (EV, UNLOOP_ALL) |
325 | |
328 | |
326 | const_iv (EV, METHOD_SELECT) |
329 | const_iv (EV, METHOD_SELECT) |
327 | const_iv (EV, METHOD_POLL) |
330 | const_iv (EV, METHOD_POLL) |
328 | const_iv (EV, METHOD_EPOLL) |
331 | const_iv (EV, METHOD_EPOLL) |
329 | const_iv (EV, METHOD_KQUEUE) |
332 | const_iv (EV, METHOD_KQUEUE) |
… | |
… | |
391 | |
394 | |
392 | int ev_method () |
395 | int ev_method () |
393 | |
396 | |
394 | NV ev_time () |
397 | NV ev_time () |
395 | |
398 | |
396 | int ev_default_loop (int methods = EVFLAG_AUTO) |
399 | int ev_default_loop (int methods = EVMETHOD_ALL) |
397 | |
400 | |
398 | void ev_loop (int flags = 0) |
401 | void ev_loop (int flags = 0) |
399 | |
402 | |
400 | void ev_unloop (int how = 1) |
403 | void ev_unloop (int how = 1) |
401 | |
404 | |
… | |
… | |
484 | OUTPUT: |
487 | OUTPUT: |
485 | RETVAL |
488 | RETVAL |
486 | |
489 | |
487 | struct ev_child *child (int pid, SV *cb) |
490 | struct ev_child *child (int pid, SV *cb) |
488 | ALIAS: |
491 | ALIAS: |
489 | check_ns = 1 |
492 | child_ns = 1 |
490 | CODE: |
493 | CODE: |
491 | RETVAL = e_new (sizeof (struct ev_child), cb); |
494 | RETVAL = e_new (sizeof (struct ev_child), cb); |
492 | ev_child_set (RETVAL, pid); |
495 | ev_child_set (RETVAL, pid); |
493 | if (!ix) ev_child_start (RETVAL); |
496 | if (!ix) ev_child_start (RETVAL); |
494 | OUTPUT: |
497 | OUTPUT: |