… | |
… | |
421 | |
421 | |
422 | void evio_start (struct ev_io *w) |
422 | void evio_start (struct ev_io *w) |
423 | |
423 | |
424 | void evio_stop (struct ev_io *w) |
424 | void evio_stop (struct ev_io *w) |
425 | |
425 | |
|
|
426 | void DESTROY (struct ev_io *w) |
|
|
427 | CODE: |
|
|
428 | evio_stop (w); |
|
|
429 | |
426 | void set (struct ev_io *w, SV *fh, int events) |
430 | void set (struct ev_io *w, SV *fh, int events) |
427 | CODE: |
431 | CODE: |
428 | { |
432 | { |
429 | int active = w->active; |
433 | int active = w->active; |
430 | if (active) evio_stop (w); |
434 | if (active) evio_stop (w); |
… | |
… | |
476 | |
480 | |
477 | void evsignal_start (struct ev_signal *w) |
481 | void evsignal_start (struct ev_signal *w) |
478 | |
482 | |
479 | void evsignal_stop (struct ev_signal *w) |
483 | void evsignal_stop (struct ev_signal *w) |
480 | |
484 | |
|
|
485 | void DESTROY (struct ev_signal *w) |
|
|
486 | CODE: |
|
|
487 | evsignal_stop (w); |
|
|
488 | |
481 | void set (struct ev_signal *w, SV *signal = 0) |
489 | void set (struct ev_signal *w, SV *signal = 0) |
482 | CODE: |
490 | CODE: |
483 | { |
491 | { |
484 | Signal signum = sv_signum (signal); /* may croak here */ |
492 | Signal signum = sv_signum (signal); /* may croak here */ |
485 | int active = w->active; |
493 | int active = w->active; |
… | |
… | |
500 | void evtimer_stop (struct ev_timer *w) |
508 | void evtimer_stop (struct ev_timer *w) |
501 | |
509 | |
502 | void evtimer_again (struct ev_timer *w) |
510 | void evtimer_again (struct ev_timer *w) |
503 | INIT: |
511 | INIT: |
504 | CHECK_REPEAT (w->repeat); |
512 | CHECK_REPEAT (w->repeat); |
|
|
513 | |
|
|
514 | void DESTROY (struct ev_timer *w) |
|
|
515 | CODE: |
|
|
516 | evtimer_stop (w); |
505 | |
517 | |
506 | void set (struct ev_timer *w, NV after, NV repeat = 0.) |
518 | void set (struct ev_timer *w, NV after, NV repeat = 0.) |
507 | INIT: |
519 | INIT: |
508 | CHECK_REPEAT (repeat); |
520 | CHECK_REPEAT (repeat); |
509 | CODE: |
521 | CODE: |
… | |
… | |
520 | INIT: |
532 | INIT: |
521 | CHECK_REPEAT (w->interval); |
533 | CHECK_REPEAT (w->interval); |
522 | |
534 | |
523 | void evperiodic_stop (struct ev_periodic *w) |
535 | void evperiodic_stop (struct ev_periodic *w) |
524 | |
536 | |
|
|
537 | void DESTROY (struct ev_periodic *w) |
|
|
538 | CODE: |
|
|
539 | evperiodic_stop (w); |
|
|
540 | |
525 | void set (struct ev_periodic *w, NV at, NV interval = 0.) |
541 | void set (struct ev_periodic *w, NV at, NV interval = 0.) |
526 | INIT: |
542 | INIT: |
527 | CHECK_REPEAT (interval); |
543 | CHECK_REPEAT (interval); |
528 | CODE: |
544 | CODE: |
529 | { |
545 | { |
… | |
… | |
537 | |
553 | |
538 | void evidle_start (struct ev_idle *w) |
554 | void evidle_start (struct ev_idle *w) |
539 | |
555 | |
540 | void evidle_stop (struct ev_idle *w) |
556 | void evidle_stop (struct ev_idle *w) |
541 | |
557 | |
|
|
558 | void DESTROY (struct ev_idle *w) |
|
|
559 | CODE: |
|
|
560 | evidle_stop (w); |
|
|
561 | |
542 | MODULE = EV PACKAGE = EV::Prepare PREFIX = evcheck_ |
562 | MODULE = EV PACKAGE = EV::Prepare PREFIX = evcheck_ |
543 | |
563 | |
544 | void evprepare_start (struct ev_prepare *w) |
564 | void evprepare_start (struct ev_prepare *w) |
545 | |
565 | |
546 | void evprepare_stop (struct ev_prepare *w) |
566 | void evprepare_stop (struct ev_prepare *w) |
547 | |
567 | |
|
|
568 | void DESTROY (struct ev_prepare *w) |
|
|
569 | CODE: |
|
|
570 | evidle_prepare (w); |
|
|
571 | |
548 | MODULE = EV PACKAGE = EV::Check PREFIX = evcheck_ |
572 | MODULE = EV PACKAGE = EV::Check PREFIX = evcheck_ |
549 | |
573 | |
550 | void evcheck_start (struct ev_check *w) |
574 | void evcheck_start (struct ev_check *w) |
551 | |
575 | |
552 | void evcheck_stop (struct ev_check *w) |
576 | void evcheck_stop (struct ev_check *w) |
553 | |
577 | |
|
|
578 | void DESTROY (struct ev_check *w) |
|
|
579 | CODE: |
|
|
580 | evidle_check (w); |
|
|
581 | |
554 | MODULE = EV PACKAGE = EV::Child PREFIX = evchild_ |
582 | MODULE = EV PACKAGE = EV::Child PREFIX = evchild_ |
555 | |
583 | |
556 | void evchild_start (struct ev_child *w) |
584 | void evchild_start (struct ev_child *w) |
557 | |
585 | |
558 | void evchild_stop (struct ev_child *w) |
586 | void evchild_stop (struct ev_child *w) |
|
|
587 | |
|
|
588 | void DESTROY (struct ev_child *w) |
|
|
589 | CODE: |
|
|
590 | evidle_child (w); |
559 | |
591 | |
560 | void set (struct ev_child *w, int pid) |
592 | void set (struct ev_child *w, int pid) |
561 | CODE: |
593 | CODE: |
562 | { |
594 | { |
563 | int active = w->active; |
595 | int active = w->active; |