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.15 by root, Wed Oct 31 18:28:00 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
86@EV::Io::ISA = "EV::Watcher";
87@EV::Time::ISA = "EV::Watcher";
88@EV::Timer::ISA = "EV::Time";
89@EV::Periodic::ISA = "EV::Time";
90@EV::Signal::ISA = "EV::Watcher";
91@EV::Idle::ISA = "EV::Watcher";
92@EV::Prepare::ISA = "EV::Watcher";
93@EV::Check::ISA = "EV::Watcher";
85 94
86=head1 BASIC INTERFACE 95=head1 BASIC INTERFACE
87 96
88=over 4 97=over 4
89 98
281 290
282Set the priority of the watcher to C<$priority> (0 <= $priority < $EV::NPRI). 291Set the priority of the watcher to C<$priority> (0 <= $priority < $EV::NPRI).
283 292
284=back 293=back
285 294
295=head1 THREADS
296
297Threads are not supported by this in any way. Perl pseudo-threads is evil
298and must die.
299
286=head1 BUGS 300=head1 BUGS
287 301
288Lots. Libevent itself isn't well tested and rather buggy, and this module 302Lots. Libevent itself isn't well tested and rather buggy, and this module
289is quite new at the moment. 303is quite new at the moment.
290 304
300 314
301our $DIED = sub { 315our $DIED = sub {
302 warn "EV: error in callback (ignoring): $@"; 316 warn "EV: error in callback (ignoring): $@";
303}; 317};
304 318
305our $NPRI = 4; 319init;
306our $BASE = init;
307priority_init $NPRI;
308 320
309push @AnyEvent::REGISTRY, [EV => "EV::AnyEvent"]; 321push @AnyEvent::REGISTRY, [EV => "EV::AnyEvent"];
310 322
3111; 3231;
312 324

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines