… | |
… | |
68 | package EV; |
68 | package EV; |
69 | |
69 | |
70 | use strict; |
70 | use strict; |
71 | |
71 | |
72 | BEGIN { |
72 | BEGIN { |
73 | our $VERSION = '3.1'; |
73 | our $VERSION = '3.31'; |
74 | use XSLoader; |
74 | use XSLoader; |
75 | XSLoader::load "EV", $VERSION; |
75 | XSLoader::load "EV", $VERSION; |
76 | } |
76 | } |
77 | |
77 | |
78 | @EV::IO::ISA = |
78 | @EV::IO::ISA = |
… | |
… | |
534 | This time simply fires at the wallclock time C<$at> and doesn't repeat. It |
534 | This time simply fires at the wallclock time C<$at> and doesn't repeat. It |
535 | will not adjust when a time jump occurs, that is, if it is to be run |
535 | will not adjust when a time jump occurs, that is, if it is to be run |
536 | at January 1st 2011 then it will run when the system time reaches or |
536 | at January 1st 2011 then it will run when the system time reaches or |
537 | surpasses this time. |
537 | surpasses this time. |
538 | |
538 | |
539 | =item * non-repeating interval timer ($interval > 0, $reschedule_cb = 0) |
539 | =item * repeating interval timer ($interval > 0, $reschedule_cb = 0) |
540 | |
540 | |
541 | In this mode the watcher will always be scheduled to time out at the |
541 | In this mode the watcher will always be scheduled to time out at the |
542 | next C<$at + N * $interval> time (for some integer N) and then repeat, |
542 | next C<$at + N * $interval> time (for some integer N) and then repeat, |
543 | regardless of any time jumps. |
543 | regardless of any time jumps. |
544 | |
544 | |
… | |
… | |
979 | |
979 | |
980 | It is, however, possible to use them from the XS level. |
980 | It is, however, possible to use them from the XS level. |
981 | |
981 | |
982 | Please see the libev documentation for further details. |
982 | Please see the libev documentation for further details. |
983 | |
983 | |
|
|
984 | =over 4 |
|
|
985 | |
|
|
986 | =item $w = EV::async $callback |
|
|
987 | |
|
|
988 | =item $w = EV::async_ns $callback |
|
|
989 | |
|
|
990 | =item $w->send |
|
|
991 | |
|
|
992 | =item $bool = $w->async_pending |
|
|
993 | |
|
|
994 | =back |
|
|
995 | |
984 | |
996 | |
985 | =head1 PERL SIGNALS |
997 | =head1 PERL SIGNALS |
986 | |
998 | |
987 | While Perl signal handling (C<%SIG>) is not affected by EV, the behaviour |
999 | While Perl signal handling (C<%SIG>) is not affected by EV, the behaviour |
988 | with EV is as the same as any other C library: Perl-signals will only be |
1000 | with EV is as the same as any other C library: Perl-signals will only be |