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.89 by root, Sat Dec 8 14:12:04 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines