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

Comparing EV/EV.pm (file contents):
Revision 1.11 by root, Mon Oct 29 07:56:03 2007 UTC vs.
Revision 1.14 by root, Wed Oct 31 10:53:53 2007 UTC

76package EV; 76package EV;
77 77
78use strict; 78use strict;
79 79
80BEGIN { 80BEGIN {
81 our $VERSION = '0.02'; 81 our $VERSION = '0.03';
82 use XSLoader; 82 use XSLoader;
83 XSLoader::load "EV", $VERSION; 83 XSLoader::load "EV", $VERSION;
84} 84}
85 85
86=head1 BASIC INTERFACE 86=head1 BASIC INTERFACE
281 281
282Set the priority of the watcher to C<$priority> (0 <= $priority < $EV::NPRI). 282Set the priority of the watcher to C<$priority> (0 <= $priority < $EV::NPRI).
283 283
284=back 284=back
285 285
286=head1 THREADS
287
288Threads are not supported by this in any way. Perl pseudo-threads is evil
289and must die.
290
286=head1 BUGS 291=head1 BUGS
287 292
288Lots. Libevent itself isn't well tested and rather buggy, and this module 293Lots. Libevent itself isn't well tested and rather buggy, and this module
289is quite new at the moment. 294is quite new at the moment.
290 295
300 305
301our $DIED = sub { 306our $DIED = sub {
302 warn "EV: error in callback (ignoring): $@"; 307 warn "EV: error in callback (ignoring): $@";
303}; 308};
304 309
305our $NPRI = 4; 310init;
306our $BASE = init;
307priority_init $NPRI;
308 311
309push @AnyEvent::REGISTRY, [EV => "EV::AnyEvent"]; 312push @AnyEvent::REGISTRY, [EV => "EV::AnyEvent"];
310 313
3111; 3141;
312 315

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines