From: Vincent Pit Date: Wed, 1 Oct 2014 18:01:05 +0000 (+0200) Subject: This is 0.07 X-Git-Tag: v0.07^0 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FThread-Cleanup.git;a=commitdiff_plain;h=bd4b8b44e5f02da00c41f5fd1db0aa952978f6d1 This is 0.07 --- diff --git a/Changes b/Changes index ef34aaf..592cf4d 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for Thread-Cleanup +0.07 2014-10-01 17:50 UTC + + Fix : Make sure the hooks are executed after all END blocks + (including the global ones) at the end of a pseudo-fork. + 0.06 2014-09-28 15:40 UTC + Doc : Updates and clarifications. + Fix : The hooks registered by this module will now be reliably diff --git a/META.json b/META.json index d6b28ac..2eb7f25 100644 --- a/META.json +++ b/META.json @@ -4,7 +4,7 @@ "Vincent Pit " ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.142060", + "generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.142690", "license" : [ "perl_5" ], @@ -55,5 +55,5 @@ "url" : "http://git.profvince.com/?p=perl%2Fmodules%2FThread-Cleanup.git" } }, - "version" : "0.06" + "version" : "0.07" } diff --git a/META.yml b/META.yml index 6806ce3..1ac918e 100644 --- a/META.yml +++ b/META.yml @@ -11,7 +11,7 @@ build_requires: configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.142060' +generated_by: 'ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.142690' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -30,4 +30,4 @@ resources: homepage: http://search.cpan.org/dist/Thread-Cleanup/ license: http://dev.perl.org/licenses/ repository: http://git.profvince.com/?p=perl%2Fmodules%2FThread-Cleanup.git -version: '0.06' +version: '0.07' diff --git a/README b/README index 5d33e42..28ba228 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME Thread::Cleanup - Hook thread destruction. VERSION - Version 0.06 + Version 0.07 SYNOPSIS use Thread::Cleanup; @@ -21,8 +21,9 @@ DESCRIPTION It acts globally on all the threads that may spawn anywhere in your program, with the exception of the main thread. - The hook will also be called when pseudo-forks (i.e. processes spawn on - Windows for the "fork" emulation) terminate. + The hooks registered with this module will also be called when + pseudo-forks (i.e. processes spawn on Windows for the "fork" emulation) + terminate. FUNCTIONS "register" @@ -41,8 +42,7 @@ FUNCTIONS global "END" time ; * For pseudo-forks, it will be called when "waitpid" succeeds, after - any "END" block local to the spawn process but before any global - "END" block ; + any local or global "END" block ; * It will never trigger for the destruction of the main thread. diff --git a/lib/Thread/Cleanup.pm b/lib/Thread/Cleanup.pm index 43b3c06..2abf109 100644 --- a/lib/Thread/Cleanup.pm +++ b/lib/Thread/Cleanup.pm @@ -11,14 +11,14 @@ Thread::Cleanup - Hook thread destruction. =head1 VERSION -Version 0.06 +Version 0.07 =cut our $VERSION; BEGIN { - $VERSION = '0.06'; + $VERSION = '0.07'; require XSLoader; XSLoader::load(__PACKAGE__, $VERSION); }