diff options
author | Karl Berry <karl@freefriends.org> | 2018-03-08 00:16:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-03-08 00:16:42 +0000 |
commit | 34a8597760ab5740abd49b6d8be10e1876f5ce98 (patch) | |
tree | 099a794912a28b3ebbc857961643ba29b28e674a /Master/tlpkg/tlperl/lib/threads.pm | |
parent | 2ca3610031316a7312d046d3ae4c783452831216 (diff) |
(tl)perl 5.26.1 from siep
git-svn-id: svn://tug.org/texlive/trunk@46882 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlperl/lib/threads.pm')
-rw-r--r-- | Master/tlpkg/tlperl/lib/threads.pm | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/Master/tlpkg/tlperl/lib/threads.pm b/Master/tlpkg/tlperl/lib/threads.pm index 39761be3dd4..d174f724965 100644 --- a/Master/tlpkg/tlperl/lib/threads.pm +++ b/Master/tlpkg/tlperl/lib/threads.pm @@ -5,7 +5,7 @@ use 5.008; use strict; use warnings; -our $VERSION = '2.07'; +our $VERSION = '2.15'; my $XS_VERSION = $VERSION; $VERSION = eval $VERSION; @@ -134,7 +134,7 @@ threads - Perl interpreter-based threads =head1 VERSION -This document describes threads version 2.07 +This document describes threads version 2.15 =head1 WARNING @@ -1061,6 +1061,18 @@ In prior perl versions, spawning threads with open directory handles would crash the interpreter. L<[perl #75154]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=75154> +=item Detached threads and global destruction + +If the main thread exits while there are detached threads which are still +running, then Perl's global destruction phase is not executed because +otherwise certain global structures that control the operation of threads and +that are allocated in the main thread's memory may get destroyed before the +detached thread is destroyed. + +If you are using any code that requires the execution of the global +destruction phase for clean up (e.g., removing temp files), then do not use +detached threads, but rather join all threads before exiting the program. + =item Perl Bugs and the CPAN Version of L<threads> Support for threads extends beyond the code in this module (i.e., @@ -1086,8 +1098,11 @@ Perl 5.8.0 or later =head1 SEE ALSO -L<threads> Discussion Forum on CPAN: -L<http://www.cpanforum.com/dist/threads> +threads on MetaCPAN: +L<https://metacpan.org/release/threads> + +Code repository for CPAN distribution: +L<https://github.com/Dual-Life/threads> L<threads::shared>, L<perlthrtut> @@ -1100,6 +1115,8 @@ L<http://lists.perl.org/list/ithreads.html> Stack size discussion: L<http://www.perlmonks.org/?node_id=532956> +Sample code in the I<examples> directory of this distribution on CPAN. + =head1 AUTHOR Artur Bergman E<lt>sky AT crucially DOT netE<gt> |