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

Comparing EV/EV.pm (file contents):
Revision 1.50 by root, Sat Nov 24 08:42:38 2007 UTC vs.
Revision 1.53 by root, Sat Nov 24 16:57:30 2007 UTC

48 EV::loop EV::LOOP_NONBLOCK; # try to handle same events, but do not block 48 EV::loop EV::LOOP_NONBLOCK; # try to handle same events, but do not block
49 49
50=head1 DESCRIPTION 50=head1 DESCRIPTION
51 51
52This module provides an interface to libev 52This module provides an interface to libev
53(L<http://software.schmorp.de/pkg/libev.html>). 53(L<http://software.schmorp.de/pkg/libev.html>). While the documentation
54below is comprehensive, one might also consult the documentation of libev
55itself (L<http://cvs.schmorp.de/libev/ev.html>) for more subtle details on
56watcher semantics or some discussion on the available backends, or how to
57force a specific backend with C<LIBEV_FLAGS>.
54 58
55=cut 59=cut
56 60
57package EV; 61package EV;
58 62
59use strict; 63use strict;
60 64
61BEGIN { 65BEGIN {
62 our $VERSION = '1.2'; 66 our $VERSION = '1.3';
63 use XSLoader; 67 use XSLoader;
64 XSLoader::load "EV", $VERSION; 68 XSLoader::load "EV", $VERSION;
65} 69}
66 70
67@EV::IO::ISA = 71@EV::IO::ISA =
306 310
307=item $w = EV::timer $after, $repeat, $callback 311=item $w = EV::timer $after, $repeat, $callback
308 312
309=item $w = EV::timer_ns $after, $repeat, $callback 313=item $w = EV::timer_ns $after, $repeat, $callback
310 314
311Calls the callback after C<$after> seconds. If C<$repeat> is non-zero, 315Calls the callback after C<$after> seconds (which may be fractional). If
312the timer will be restarted (with the $repeat value as $after) after the 316C<$repeat> is non-zero, the timer will be restarted (with the $repeat
313callback returns. 317value as $after) after the callback returns.
314 318
315This means that the callback would be called roughly after C<$after> 319This means that the callback would be called roughly after C<$after>
316seconds, and then every C<$repeat> seconds. The timer does his best not 320seconds, and then every C<$repeat> seconds. The timer does his best not
317to drift, but it will not invoke the timer more often then once per event 321to drift, but it will not invoke the timer more often then once per event
318loop iteration, and might drift in other cases. If that isn't acceptable, 322loop iteration, and might drift in other cases. If that isn't acceptable,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines