Thread::Cleanup - Hook thread destruction.
VERSION
- Version 0.01
+ Version 0.04
SYNOPSIS
use Thread::Cleanup;
FUNCTIONS
"register BLOCK"
Specify that the "BLOCK" will have to be called (in void context,
- without arguments) every time a thread finishes is job. More precisely,
+ without arguments) every time a thread finishes its job. More precisely,
- * it will always be called before the join for joined threads ;
+ * it will always be called before the joining for joined threads ;
- * it will be called for detached threads only if they terminate before
- the main thread, and the hook will then fire at "END" time ;
+ * it will be called for detached threads if and only if they terminate
+ before the main thread, and the hook will then fire at "END" time ;
- * it won't trigger for the the destruction of the main thread.
+ * it won't trigger for the destruction of the main thread.
EXPORT
None.
DEPENDENCIES
- "perl" 5.8.
+ perl 5.8.
- "threads" 1.07.
+ threads 1.07.
- "XSLoader".
+ XSLoader.
AUTHOR
Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
Inspired by a question from TonyC on #p5p.
COPYRIGHT & LICENSE
- Copyright 2009 Vincent Pit, all rights reserved.
+ Copyright 2009,2010 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.