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

Comparing EV/EV.pm (file contents):
Revision 1.45 by root, Fri Nov 23 03:59:23 2007 UTC vs.
Revision 1.46 by root, Fri Nov 23 05:00:44 2007 UTC

530=back 530=back
531 531
532=head1 THREADS 532=head1 THREADS
533 533
534Threads are not supported by this module in any way. Perl pseudo-threads 534Threads are not supported by this module in any way. Perl pseudo-threads
535is evil stuff and must die. 535is evil stuff and must die. As soon as Perl gains real threads I will work
536on thread support for it.
537
538=head1 FORK
539
540Most of the "improved" event delivering mechanisms of modern operating
541systems have quite a few problems with fork(2) (to put it bluntly: it is
542not supported and usually destructive). Libev makes it possible to work
543around this by having a function that recreates the kernel state after
544fork in the child.
545
546On non-win32 platforms, this module requires the pthread_atfork
547functionality to do this automatically for you. This function is quite
548buggy on most BSDs, though, so YMMV. The overhead for this is quite
549negligible, because everything the function currently does is set a flag
550that is checked only when the event loop gets used the next time, so when
551you do fork but not use EV, the overhead is minimal.
552
553On win32, there is no notion of fork so all this doesn't apply, of course.
536 554
537=cut 555=cut
538 556
539our $DIED = sub { 557our $DIED = sub {
540 warn "EV: error in callback (ignoring): $@"; 558 warn "EV: error in callback (ignoring): $@";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines