… | |
… | |
418 | evapi.prepare_stop = ev_prepare_stop; |
418 | evapi.prepare_stop = ev_prepare_stop; |
419 | evapi.check_start = ev_check_start; |
419 | evapi.check_start = ev_check_start; |
420 | evapi.check_stop = ev_check_stop; |
420 | evapi.check_stop = ev_check_stop; |
421 | evapi.child_start = ev_child_start; |
421 | evapi.child_start = ev_child_start; |
422 | evapi.child_stop = ev_child_stop; |
422 | evapi.child_stop = ev_child_stop; |
|
|
423 | evapi.ref = ev_ref; |
|
|
424 | evapi.unref = ev_unref; |
423 | |
425 | |
424 | sv_setiv (sv, (IV)&evapi); |
426 | sv_setiv (sv, (IV)&evapi); |
425 | SvREADONLY_on (sv); |
427 | SvREADONLY_on (sv); |
426 | } |
428 | } |
427 | #ifndef _WIN32 |
429 | #ifndef _WIN32 |
… | |
… | |
534 | ev_child_set (RETVAL, pid); |
536 | ev_child_set (RETVAL, pid); |
535 | if (!ix) ev_child_start (RETVAL); |
537 | if (!ix) ev_child_start (RETVAL); |
536 | OUTPUT: |
538 | OUTPUT: |
537 | RETVAL |
539 | RETVAL |
538 | |
540 | |
539 | void once (SV *fh, int events, NV timeout, SV *cb) |
541 | void once (SV *fh, int events, SV *timeout, SV *cb) |
540 | CODE: |
542 | CODE: |
541 | ev_once (sv_fileno (fh), events, timeout, e_once_cb, newSVsv (cb)); |
543 | ev_once ( |
|
|
544 | sv_fileno (fh), events, |
|
|
545 | SvOK (timeout) ? SvNV (timeout) : -1., |
|
|
546 | e_once_cb, |
|
|
547 | newSVsv (cb) |
|
|
548 | ); |
542 | |
549 | |
543 | PROTOTYPES: DISABLE |
550 | PROTOTYPES: DISABLE |
544 | |
551 | |
545 | MODULE = EV PACKAGE = EV::Watcher PREFIX = ev_ |
552 | MODULE = EV PACKAGE = EV::Watcher PREFIX = ev_ |
546 | |
553 | |