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

Comparing EV/EV.xs (file contents):
Revision 1.25 by root, Wed Oct 31 20:19:20 2007 UTC vs.
Revision 1.26 by root, Wed Oct 31 21:34:45 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines