From: Jarkko Hietaniemi Date: Sat, 13 Jul 2002 00:03:04 +0000 (+0000) Subject: Document that using threads/pseudofork inside BEGINs does not work. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=88f8c1dfe3e63f5bedaea1d870d5c68b59613b12;p=p5sagit%2Fp5-mst-13.2.git Document that using threads/pseudofork inside BEGINs does not work. p4raw-id: //depot/perl@17513 --- diff --git a/ext/threads/threads.pm b/ext/threads/threads.pm index 5fcbc9f..337aaf5 100755 --- a/ext/threads/threads.pm +++ b/ext/threads/threads.pm @@ -250,8 +250,19 @@ When you return an object the entire stash that the object is blessed as well. This will lead to a large memory usage. The ideal situation would be to detect the original stash if it existed. +=item Creating threads inside BEGIN blocks + +Creating threads inside BEGIN blocks (or during the compilation phase +in general) does not work. (In Windows, trying to use fork() inside +BEGIN blocks is an equally losing proposition, since it has been +implemented in very much the same way as threads.) + =item PERL_OLD_SIGNALS are not threadsafe, will not be. +If your Perl has been built with PERL_OLD_SIGNALS (one has +to explicitly add that symbol to ccflags, see C), +signal handling is not threadsafe. + =back =head1 AUTHOR and COPYRIGHT