From: "Jerry D. Hedden" <jerry@hedden.us>
Message-ID: <
20060710132825.fb30e530d17747c2b054d625b8945d88.5bdc82d2c0.wbe@email.secureserver.net>
p4raw-id: //depot/perl@28543
Revision history for Perl extension threads.
-1.35 - Mon Jul 10 09:44:47 EDT 2006
+1.36 Mon Jul 10 15:58:13 EDT 2006
+ - Ignore signals sent to terminated threads
+
+1.35 Mon Jul 10 09:44:47 EDT 2006
- Upgraded ppport.h to Devel::PPPort 3.09
- Fix for Borland compiler
-threads version 1.35
+threads version 1.36
====================
-This module needs perl 5.8.0 or later compiled with 'useithreads'.
-It exposes interpreter threads to the Perl level.
+This module exposes interpreter threads to the Perl level.
INSTALLATION
DEPENDENCIES
-This module requires these other modules and libraries:
-
- threads::shared
+This module needs perl 5.8.0 or later compiled with 'useithreads'.
COPYRIGHT AND LICENCE
sleep(1);
# Terminate the thread
-ok($thr->kill('TERM'), 'Signalled thread to terminate');
+ok($thr->kill('TERM') == $thr, 'Signalled thread to terminate');
$rc = $thr->join();
ok($rc eq 'OKAY', 'Thread return value');
+ok($thr->kill('TERM'), 'Ignore signal to terminated thread');
+
# EOF
# bugid #24165
-run_perl(prog => 'use threads 1.35;
+run_perl(prog => 'use threads 1.36;
sub a{threads->create(shift)} $t = a sub{};
$t->tid; $t->join; $t->tid',
nolib => ($ENV{PERL_CORE}) ? 0 : 1,
use strict;
use warnings;
-our $VERSION = '1.35';
+our $VERSION = '1.36';
my $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
=head1 VERSION
-This document describes threads version 1.35
+This document describes threads version 1.36
=head1 SYNOPSIS
L<http://www.cpanforum.com/dist/threads>
Annotated POD for L<threads>:
-L<http://annocpan.org/~JDHEDDEN/threads-1.35/threads.pm>
+L<http://annocpan.org/~JDHEDDEN/threads-1.36/threads.pm>
L<threads::shared>, L<perlthrtut>
/* Set the signal for the thread */
thread = SV_to_ithread(aTHX_ ST(0));
MUTEX_LOCK(&thread->mutex);
- {
+ if (thread->interp) {
dTHXa(thread->interp);
PL_psig_pend[signal]++;
PL_sig_pending = 1;