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

Comparing EV/EV.pm (file contents):
Revision 1.65 by root, Sat Dec 8 14:12:03 2007 UTC vs.
Revision 1.72 by root, Thu Dec 20 07:12:57 2007 UTC

68package EV; 68package EV;
69 69
70use strict; 70use strict;
71 71
72BEGIN { 72BEGIN {
73 our $VERSION = '1.8'; 73 our $VERSION = '2.0';
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 =
86@EV::Check::ISA = 86@EV::Check::ISA =
87@EV::Embed::ISA = 87@EV::Embed::ISA =
88@EV::Fork::ISA = 88@EV::Fork::ISA =
89 "EV::Watcher"; 89 "EV::Watcher";
90 90
91@EV::Loop::Default::ISA = "EV::Loop";
92
91=head1 BASIC INTERFACE 93=head1 BASIC INTERFACE
92 94
93=over 4 95=over 4
94 96
95=item $EV::DIED 97=item $EV::DIED
96 98
97Must contain a reference to a function that is called when a callback 99Must contain a reference to a function that is called when a callback
98throws an exception (with $@ containing thr error). The default prints an 100throws an exception (with $@ containing the error). The default prints an
99informative message and continues. 101informative message and continues.
100 102
101If this callback throws an exception it will be silently ignored. 103If this callback throws an exception it will be silently ignored.
102 104
103=item $time = EV::time 105=item $time = EV::time
494 496
495=item $w->again 497=item $w->again
496 498
497Simply stops and starts the watcher again. 499Simply stops and starts the watcher again.
498 500
501=item $time = $w->at
502
503Return the time that the watcher is expected to trigger next.
504
499=back 505=back
500 506
501 507
502=head3 SIGNAL WATCHERS - signal me when a signal gets signalled! 508=head3 SIGNAL WATCHERS - signal me when a signal gets signalled!
503 509
838our $DIED = sub { 844our $DIED = sub {
839 warn "EV: error in callback (ignoring): $@"; 845 warn "EV: error in callback (ignoring): $@";
840}; 846};
841 847
842default_loop 848default_loop
843 or die 'EV: cannot initialise libev backend. bad $ENV{LIBEV_METHODS}?'; 849 or die 'EV: cannot initialise libev backend. bad $ENV{LIBEV_FLAGS}?';
844 850
8451; 8511;
846 852
847=head1 SEE ALSO 853=head1 SEE ALSO
848 854

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines