X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FThread-Cleanup.git;a=blobdiff_plain;f=lib%2FThread%2FCleanup.pm;fp=lib%2FThread%2FCleanup.pm;h=7d0d73eed27acf193de9000368755b0ddb48eeaa;hp=53aca1a29aef4fc9e821538c1d7d08110ee06caa;hb=4f0afe4e928095f816cf61ea056c092764df6ab5;hpb=bbd807e367d1ec766e67ffc3a24f1dc1dd0e35bb diff --git a/lib/Thread/Cleanup.pm b/lib/Thread/Cleanup.pm index 53aca1a..7d0d73e 100644 --- a/lib/Thread/Cleanup.pm +++ b/lib/Thread/Cleanup.pm @@ -42,9 +42,12 @@ It acts globally on all the threads that may spawn anywhere in your program, wit =head1 FUNCTIONS -=head2 C +=head2 C -Specify that the C will have to be called (in void context, without arguments) every time a thread finishes its job. + register { ... }; + ®ister($coderef); + +Specify that the given block or code reference C<$coderef> will have to be called (in void context, without arguments) every time a thread finishes its job. More precisely, =over 4