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

Comparing EV/EV.pm (file contents):
Revision 1.7 by root, Sat Oct 27 14:54:20 2007 UTC vs.
Revision 1.8 by root, Sat Oct 27 19:11:27 2007 UTC

60 our $VERSION = '0.01'; 60 our $VERSION = '0.01';
61 use XSLoader; 61 use XSLoader;
62 XSLoader::load "EV", $VERSION; 62 XSLoader::load "EV", $VERSION;
63} 63}
64 64
65=head1 FUNCTIONAL INTERFACE 65=head1 BASIC INTERFACE
66 66
67=over 4 67=over 4
68 68
69=item $EV::NPRI 69=item $EV::NPRI
70 70
71How many priority levels are available. 71How many priority levels are available.
72
73=item $EV::DIED
74
75Must contain a reference to a function that is called when a callback
76throws an exception (with $@ containing thr error). The default prints an
77informative message and continues.
78
79If this callback throws an exception it will be silently ignored.
72 80
73=item $time = EV::now 81=item $time = EV::now
74 82
75Returns the time in (fractional) seconds since the epoch. 83Returns the time in (fractional) seconds since the epoch.
76 84
231In general, if you fork, then you can only use the EV module in one of the 239In general, if you fork, then you can only use the EV module in one of the
232children. 240children.
233 241
234=cut 242=cut
235 243
244our $DIED = sub {
245 warn "EV: error in callback (ignoring): $@";
246};
247
236our $NPRI = 4; 248our $NPRI = 4;
237our $BASE = init; 249our $BASE = init;
238priority_init $NPRI; 250priority_init $NPRI;
239 251
240push @AnyEvent::REGISTRY, [EV => "EV::AnyEvent"]; 252push @AnyEvent::REGISTRY, [EV => "EV::AnyEvent"];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines