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

Comparing EV/EV.pm (file contents):
Revision 1.16 by root, Wed Oct 31 20:10:17 2007 UTC vs.
Revision 1.19 by root, Thu Nov 1 11:43:10 2007 UTC

79package EV; 79package EV;
80 80
81use strict; 81use strict;
82 82
83BEGIN { 83BEGIN {
84 our $VERSION = '0.03'; 84 our $VERSION = '0.1';
85 use XSLoader; 85 use XSLoader;
86 XSLoader::load "EV", $VERSION; 86 XSLoader::load "EV", $VERSION;
87} 87}
88 88
89@EV::Io::ISA = "EV::Watcher"; 89@EV::Io::ISA =
90@EV::Time::ISA = "EV::Watcher";
91@EV::Timer::ISA = "EV::Time"; 90@EV::Timer::ISA =
92@EV::Periodic::ISA = "EV::Time"; 91@EV::Periodic::ISA =
93@EV::Signal::ISA = "EV::Watcher"; 92@EV::Signal::ISA =
94@EV::Idle::ISA = "EV::Watcher"; 93@EV::Idle::ISA =
95@EV::Prepare::ISA = "EV::Watcher"; 94@EV::Prepare::ISA =
95@EV::Check::ISA =
96@EV::Check::ISA = "EV::Watcher"; 96@EV::Child::ISA = "EV::Watcher";
97 97
98=head1 BASIC INTERFACE 98=head1 BASIC INTERFACE
99 99
100=over 4 100=over 4
101 101
298=head1 THREADS 298=head1 THREADS
299 299
300Threads are not supported by this in any way. Perl pseudo-threads is evil 300Threads are not supported by this in any way. Perl pseudo-threads is evil
301and must die. 301and must die.
302 302
303=head1 BUGS
304
305Lots. Libevent itself isn't well tested and rather buggy, and this module
306is quite new at the moment.
307
308Please note that the epoll method is not, in general, reliable in programs
309that use fork (even if no libveent calls are being made in the forked
310process). If your program behaves erratically, try setting the environment
311variable C<EVENT_NOEPOLL> first when running the program.
312
313In general, if you fork, then you can only use the EV module in one of the
314children.
315
316=cut 303=cut
317 304
318our $DIED = sub { 305our $DIED = sub {
319 warn "EV: error in callback (ignoring): $@"; 306 warn "EV: error in callback (ignoring): $@";
320}; 307};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines