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

Comparing EV/EV.xs (file contents):
Revision 1.88 by root, Sat Dec 8 04:02:30 2007 UTC vs.
Revision 1.90 by root, Mon Dec 17 07:24:12 2007 UTC

404 evapi.child_stop = ev_child_stop; 404 evapi.child_stop = ev_child_stop;
405 evapi.stat_start = ev_stat_start; 405 evapi.stat_start = ev_stat_start;
406 evapi.stat_stop = ev_stat_stop; 406 evapi.stat_stop = ev_stat_stop;
407 evapi.stat_stat = ev_stat_stat; 407 evapi.stat_stat = ev_stat_stat;
408 evapi.clear_pending = ev_clear_pending; 408 evapi.clear_pending = ev_clear_pending;
409 evapi.invoke = ev_invoke;
409 410
410 sv_setiv (sv, (IV)&evapi); 411 sv_setiv (sv, (IV)&evapi);
411 SvREADONLY_on (sv); 412 SvREADONLY_on (sv);
412 } 413 }
413#ifndef _WIN32 414#ifndef _WIN32
427 428
428void ev_loop (int flags = 0) 429void ev_loop (int flags = 0)
429 430
430void ev_unloop (int how = 1) 431void ev_unloop (int how = 1)
431 432
433void ev_feed_fd_event (int fd, int revents = EV_NONE)
434
435void ev_feed_signal_event (SV *signal)
436 CODE:
437{
438 Signal signum = sv_signum (signal);
439 CHECK_SIG (signal, signum);
440
441 ev_feed_signal_event (EV_DEFAULT_ signum);
442}
443
432ev_io *io (SV *fh, int events, SV *cb) 444ev_io *io (SV *fh, int events, SV *cb)
433 ALIAS: 445 ALIAS:
434 io_ns = 1 446 io_ns = 1
435 CODE: 447 CODE:
436{ 448{
555 567
556int ev_is_active (ev_watcher *w) 568int ev_is_active (ev_watcher *w)
557 569
558int ev_is_pending (ev_watcher *w) 570int ev_is_pending (ev_watcher *w)
559 571
572void ev_invoke (ev_watcher *w, int revents = EV_NONE)
573
574int ev_clear_pending (ev_watcher *w)
575
576void ev_feed_event (ev_watcher *w, int revents = EV_NONE)
577
560int keepalive (ev_watcher *w, int new_value = 0) 578int keepalive (ev_watcher *w, int new_value = 0)
561 CODE: 579 CODE:
562{ 580{
563 RETVAL = w->flags & WFLAG_KEEPALIVE; 581 RETVAL = w->flags & WFLAG_KEEPALIVE;
564 new_value = new_value ? WFLAG_KEEPALIVE : 0; 582 new_value = new_value ? WFLAG_KEEPALIVE : 0;
595 w->data = newSVsv (new_data); 613 w->data = newSVsv (new_data);
596 } 614 }
597} 615}
598 OUTPUT: 616 OUTPUT:
599 RETVAL 617 RETVAL
600
601void trigger (ev_watcher *w, int revents = EV_NONE)
602 CODE:
603 w->cb (w, revents);
604 618
605int priority (ev_watcher *w, int new_priority = 0) 619int priority (ev_watcher *w, int new_priority = 0)
606 CODE: 620 CODE:
607{ 621{
608 RETVAL = w->priority; 622 RETVAL = w->priority;
758 INIT: 772 INIT:
759 CHECK_REPEAT (repeat); 773 CHECK_REPEAT (repeat);
760 CODE: 774 CODE:
761 RESET (timer, w, (w, after, repeat)); 775 RESET (timer, w, (w, after, repeat));
762 776
777NV at (ev_timer *w)
778 CODE:
779 RETVAL = w->at;
780 OUTPUT:
781 RETVAL
782
763MODULE = EV PACKAGE = EV::Periodic PREFIX = ev_periodic_ 783MODULE = EV PACKAGE = EV::Periodic PREFIX = ev_periodic_
764 784
765void ev_periodic_start (ev_periodic *w) 785void ev_periodic_start (ev_periodic *w)
766 INIT: 786 INIT:
767 CHECK_REPEAT (w->interval); 787 CHECK_REPEAT (w->interval);
791 SvREFCNT_dec (w->fh); 811 SvREFCNT_dec (w->fh);
792 w->fh = SvTRUE (reschedule_cb) ? newSVsv (reschedule_cb) : 0; 812 w->fh = SvTRUE (reschedule_cb) ? newSVsv (reschedule_cb) : 0;
793 813
794 RESET (periodic, w, (w, at, interval, w->fh ? e_periodic_cb : 0)); 814 RESET (periodic, w, (w, at, interval, w->fh ? e_periodic_cb : 0));
795} 815}
816
817NV at (ev_periodic *w)
818 CODE:
819 RETVAL = w->at;
820 OUTPUT:
821 RETVAL
796 822
797MODULE = EV PACKAGE = EV::Idle PREFIX = ev_idle_ 823MODULE = EV PACKAGE = EV::Idle PREFIX = ev_idle_
798 824
799void ev_idle_start (ev_idle *w) 825void ev_idle_start (ev_idle *w)
800 CODE: 826 CODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines