summaryrefslogtreecommitdiff
path: root/ext/threads
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-07-13 00:03:04 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-07-13 00:03:04 +0000
commit88f8c1dfe3e63f5bedaea1d870d5c68b59613b12 (patch)
treef76987fee49b10ebf5c3c092efa2388ac0a1a473 /ext/threads
parent3d32476b6ac7ae195aafe3bae3fdc0b9546c0e7a (diff)
downloadperl-88f8c1dfe3e63f5bedaea1d870d5c68b59613b12.tar.gz
Document that using threads/pseudofork inside BEGINs does not work.
p4raw-id: //depot/perl@17513
Diffstat (limited to 'ext/threads')
-rwxr-xr-xext/threads/threads.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/threads/threads.pm b/ext/threads/threads.pm
index 5fcbc9fd5c..337aaf5027 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<perl -V>),
+signal handling is not threadsafe.
+
=back
=head1 AUTHOR and COPYRIGHT