diff options
author | jdhedden <jdhedden@cpan.org> | 2017-05-07 18:33:39 -0400 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2017-06-01 08:44:16 -0400 |
commit | 99fcc83522102cdf7673a78ef88144bd9c093f5a (patch) | |
tree | ee8c81808bc3a561fc015c7644cc9a8e34b33ec3 /dist | |
parent | 7ce27a6f2b89dae3defa2524b76268114d9aa220 (diff) | |
download | perl-99fcc83522102cdf7673a78ef88144bd9c093f5a.tar.gz |
Upgrade to threads 2.16
Diffstat (limited to 'dist')
-rw-r--r-- | dist/threads/lib/threads.pm | 4 | ||||
-rw-r--r-- | dist/threads/t/exit.t | 10 | ||||
-rw-r--r-- | dist/threads/t/thread.t | 2 | ||||
-rw-r--r-- | dist/threads/threads.xs | 5 |
4 files changed, 11 insertions, 10 deletions
diff --git a/dist/threads/lib/threads.pm b/dist/threads/lib/threads.pm index d174f72496..2c37a61907 100644 --- a/dist/threads/lib/threads.pm +++ b/dist/threads/lib/threads.pm @@ -5,7 +5,7 @@ use 5.008; use strict; use warnings; -our $VERSION = '2.15'; +our $VERSION = '2.16'; my $XS_VERSION = $VERSION; $VERSION = eval $VERSION; @@ -134,7 +134,7 @@ threads - Perl interpreter-based threads =head1 VERSION -This document describes threads version 2.15 +This document describes threads version 2.16 =head1 WARNING diff --git a/dist/threads/t/exit.t b/dist/threads/t/exit.t index bad602f8bb..4e0286605e 100644 --- a/dist/threads/t/exit.t +++ b/dist/threads/t/exit.t @@ -48,7 +48,7 @@ my $rc = $thr->join(); ok(! defined($rc), 'Exited: threads->exit()'); -run_perl(prog => 'use threads 2.15;' . +run_perl(prog => 'use threads 2.16;' . 'threads->exit(86);' . 'exit(99);', nolib => ($ENV{PERL_CORE}) ? 0 : 1, @@ -98,7 +98,7 @@ $rc = $thr->join(); ok(! defined($rc), 'Exited: $thr->set_thread_exit_only'); -run_perl(prog => 'use threads 2.15 qw(exit thread_only);' . +run_perl(prog => 'use threads 2.16 qw(exit thread_only);' . 'threads->create(sub { exit(99); })->join();' . 'exit(86);', nolib => ($ENV{PERL_CORE}) ? 0 : 1, @@ -108,7 +108,7 @@ run_perl(prog => 'use threads 2.15 qw(exit thread_only);' . is($?>>8, 86, "'use threads 'exit' => 'thread_only'"); } -my $out = run_perl(prog => 'use threads 2.15;' . +my $out = run_perl(prog => 'use threads 2.16;' . 'threads->create(sub {' . ' exit(99);' . '});' . @@ -124,7 +124,7 @@ my $out = run_perl(prog => 'use threads 2.15;' . like($out, qr/1 finished and unjoined/, "exit(status) in thread"); -$out = run_perl(prog => 'use threads 2.15 qw(exit thread_only);' . +$out = run_perl(prog => 'use threads 2.16 qw(exit thread_only);' . 'threads->create(sub {' . ' threads->set_thread_exit_only(0);' . ' exit(99);' . @@ -141,7 +141,7 @@ $out = run_perl(prog => 'use threads 2.15 qw(exit thread_only);' . like($out, qr/1 finished and unjoined/, "set_thread_exit_only(0)"); -run_perl(prog => 'use threads 2.15;' . +run_perl(prog => 'use threads 2.16;' . 'threads->create(sub {' . ' $SIG{__WARN__} = sub { exit(99); };' . ' die();' . diff --git a/dist/threads/t/thread.t b/dist/threads/t/thread.t index 8f4f156967..c63250c353 100644 --- a/dist/threads/t/thread.t +++ b/dist/threads/t/thread.t @@ -161,7 +161,7 @@ package main; # bugid #24165 -run_perl(prog => 'use threads 2.15;' . +run_perl(prog => 'use threads 2.16;' . 'sub a{threads->create(shift)} $t = a sub{};' . '$t->tid; $t->join; $t->tid', nolib => ($ENV{PERL_CORE}) ? 0 : 1, diff --git a/dist/threads/threads.xs b/dist/threads/threads.xs index 838276545c..c519ad4f4d 100644 --- a/dist/threads/threads.xs +++ b/dist/threads/threads.xs @@ -1016,12 +1016,13 @@ S_ithread_create( MUTEX_UNLOCK(&my_pool->create_destruct_mutex); return (thread); -#if defined(__clang__) || defined(__clang) +#if defined(CLANG_DIAG_IGNORE) CLANG_DIAG_IGNORE(-Wthread-safety); /* warning: mutex 'thread->mutex' is not held on every path through here [-Wthread-safety-analysis] */ #endif } -#if defined(__clang__) || defined(__clang) +/* perl.h defines CLANG_DIAG_* but only in 5.24+ */ +#if defined(CLANG_DIAG_RESTORE) CLANG_DIAG_RESTORE #endif |