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

Comparing EV/EV.pm (file contents):
Revision 1.30 by root, Thu Nov 8 02:19:36 2007 UTC vs.
Revision 1.34 by root, Fri Nov 9 19:38:56 2007 UTC

62package EV; 62package EV;
63 63
64use strict; 64use strict;
65 65
66BEGIN { 66BEGIN {
67 our $VERSION = '0.51'; 67 our $VERSION = '0.7';
68 use XSLoader; 68 use XSLoader;
69 XSLoader::load "EV", $VERSION; 69 XSLoader::load "EV", $VERSION;
70} 70}
71 71
72@EV::Io::ISA = 72@EV::Io::ISA =
346In this mode $interval and $at are both being ignored. Instead, each time 346In this mode $interval and $at are both being ignored. Instead, each time
347the periodic watcher gets scheduled, the first callback ($reschedule_cb) 347the periodic watcher gets scheduled, the first callback ($reschedule_cb)
348will be called with the watcher as first, and the current time as second 348will be called with the watcher as first, and the current time as second
349argument. 349argument.
350 350
351I<This callback MUST NOT stop or destroy the event watcher, ever.> 351I<This callback MUST NOT stop or destroy this or any other periodic
352watcher, ever>. If you need to stop it, return 1e30 and stop it
353afterwards.
352 354
353It must return the next time to trigger, based on the passed time value 355It must return the next time to trigger, based on the passed time value
354(that is, the lowest time value larger than to the second argument). It 356(that is, the lowest time value larger than to the second argument). It
355will usually be called just before the callback will be triggered, but 357will usually be called just before the callback will be triggered, but
356might be called at other times, too. 358might be called at other times, too.
541}; 543};
542 544
543default_loop 545default_loop
544 or die 'EV: cannot initialise libev backend. bad $ENV{LIBEV_METHODS}?'; 546 or die 'EV: cannot initialise libev backend. bad $ENV{LIBEV_METHODS}?';
545 547
546push @AnyEvent::REGISTRY, [EV => "EV::AnyEvent"];
547
5481; 5481;
549 549
550=head1 SEE ALSO 550=head1 SEE ALSO
551 551
552 L<EV::DNS>, L<EV::AnyEvent>. 552 L<EV::DNS>, L<EV::AnyEvent>.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines