summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorElizabeth Mattijsen <liz@dijkmat.nl>2002-07-13 01:45:52 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2002-07-12 23:53:22 +0000
commit3d32476b6ac7ae195aafe3bae3fdc0b9546c0e7a (patch)
tree1851b09d6dcbbef010bdc335e87d91ac4ecfb3a1 /ext
parentab80e3f240ea507dcbf37bbec07e38675137e03c (diff)
downloadperl-3d32476b6ac7ae195aafe3bae3fdc0b9546c0e7a.tar.gz
[DOC PATCH] threads::shared.pm, share( $hashref->{key} ) bug
Message-Id: <4.2.0.58.20020712234444.0209f350@mickey.dijkmat.nl> p4raw-id: //depot/perl@17512
Diffstat (limited to 'ext')
-rw-r--r--ext/threads/shared/shared.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/threads/shared/shared.pm b/ext/threads/shared/shared.pm
index 3016039b83..cd39da6bf8 100644
--- a/ext/threads/shared/shared.pm
+++ b/ext/threads/shared/shared.pm
@@ -182,6 +182,11 @@ Taking references to the elements of shared arrays and hashes does not
autovivify the elements, and neither does slicing a shared array/hash
over non-existent indices/keys autovivify the elements.
+share() allows you to C<share $hashref->{key}> without giving any error
+message. But the C<$hashref->{key}> is B<not> shared, causing the error
+"locking can only be used on shared values" to occur when you attempt to
+C<lock $hasref->{key}>.
+
=head1 AUTHOR
Arthur Bergman E<lt>arthur at contiller.seE<gt>