diff options
author | Jerry D. Hedden <jdhedden@cpan.org> | 2012-09-28 11:51:56 -0400 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-09-28 09:27:55 -0700 |
commit | 4038981c97e0b0ad3fb5a4bc69c0c6ec5a11e021 (patch) | |
tree | 0e0ef9cf83573925a91fe57f65679191952a154f /ext | |
parent | f056f7d2553231cb7bf69f46089ee9f29dba8cc8 (diff) | |
download | perl-4038981c97e0b0ad3fb5a4bc69c0c6ec5a11e021.tar.gz |
Document :shared and :unique in attributes.pm
Add documentation to attributes.pm for :shared and :unique, and bump version.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/attributes/attributes.pm | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/ext/attributes/attributes.pm b/ext/attributes/attributes.pm index 4a359f0e79..5a656a6923 100644 --- a/ext/attributes/attributes.pm +++ b/ext/attributes/attributes.pm @@ -1,6 +1,6 @@ package attributes; -our $VERSION = 0.20; +our $VERSION = 0.21; @EXPORT_OK = qw(get reftype); @EXPORT = (); @@ -240,9 +240,26 @@ will not trigger the "Ambiguous call resolved as CORE::%s" warning. =item locked -The "locked" attribute has no effect in -5.10.0 and later. It was used as part -of the now-removed "Perl 5.005 threads". +The "locked" attribute is deprecated, and has no effect in 5.10.0 and later. +It was used as part of the now-removed "Perl 5.005 threads". + +=back + +The following are the built-in attributes for variables: + +=over 4 + +=item shared + +Indicates that the referenced variable can be shared across different threads +when used in conjunction with the L<threads> and L<threads::shared> modules. + +=item unique + +The "unique" attribute is deprecated, and has no effect in 5.10.0 and later. +It used to indicate that a single copy of an C<our> variable was to be used by +all interpreters should the program happen to be running in a +multi-interpreter environment. =back |