diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-12 12:47:11 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-12 12:47:11 +0000 |
commit | 6bc4bdd0d179b97fea125bc692fbca61c9052862 (patch) | |
tree | 8ee683af87dd70acdc0daa3a0131b9b81c4f02ee | |
parent | 8c9849ff798160d7f115286b222762e1c4e65f66 (diff) | |
download | perl-6bc4bdd0d179b97fea125bc692fbca61c9052862.tar.gz |
Document that one cannot "proxy" enable threading.
p4raw-id: //depot/perl@17500
-rwxr-xr-x | ext/threads/threads.pm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ext/threads/threads.pm b/ext/threads/threads.pm index 86f8766c40..bb86939e7a 100755 --- a/ext/threads/threads.pm +++ b/ext/threads/threads.pm @@ -130,12 +130,13 @@ important to note that variables are not shared between threads, all variables are per default thread local. To use shared variables one must use threads::shared. -It is also important to note that you must enable threads by -doing C<use threads> as early as possible and that it is not possible -to enable threading inside an eval ""; In particular, if you are -intending to share variables with threads::shared, you must -C<use threads> before you C<use threads::shared> and threads will emit -a warning if you do it the other way around. +It is also important to note that you must enable threads by doing +C<use threads> as early as possible in the script itself and that it +is not possible to enable threading inside an C<eval "">, C<do>, +C<require>, or C<use>. In particular, if you are intending to share +variables with threads::shared, you must C<use threads> before you +C<use threads::shared> and C<threads> will emit a warning if you do +it the other way around. =over |