diff options
author | jdhedden <jdhedden@cpan.org> | 2017-05-07 18:48:59 -0400 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2017-06-01 08:43:51 -0400 |
commit | 7ce27a6f2b89dae3defa2524b76268114d9aa220 (patch) | |
tree | 5d09f59bf8fba42b389937b00add9ce22fe73d28 /dist/threads-shared | |
parent | 8a6aac01b357b1712b6af0e9295067de745ebda3 (diff) | |
download | perl-7ce27a6f2b89dae3defa2524b76268114d9aa220.tar.gz |
Upgrade to threads::shared 1.57
Diffstat (limited to 'dist/threads-shared')
-rw-r--r-- | dist/threads-shared/lib/threads/shared.pm | 4 | ||||
-rw-r--r-- | dist/threads-shared/shared.xs | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/dist/threads-shared/lib/threads/shared.pm b/dist/threads-shared/lib/threads/shared.pm index 73c4dd997f..9be89f33f2 100644 --- a/dist/threads-shared/lib/threads/shared.pm +++ b/dist/threads-shared/lib/threads/shared.pm @@ -7,7 +7,7 @@ use warnings; use Scalar::Util qw(reftype refaddr blessed); -our $VERSION = '1.56'; # Please update the pod, too. +our $VERSION = '1.57'; # Please update the pod, too. my $XS_VERSION = $VERSION; $VERSION = eval $VERSION; @@ -195,7 +195,7 @@ threads::shared - Perl extension for sharing data structures between threads =head1 VERSION -This document describes threads::shared version 1.56 +This document describes threads::shared version 1.57 =head1 SYNOPSIS diff --git a/dist/threads-shared/shared.xs b/dist/threads-shared/shared.xs index 3c1b5e608c..40207aa88b 100644 --- a/dist/threads-shared/shared.xs +++ b/dist/threads-shared/shared.xs @@ -656,14 +656,15 @@ Perl_sharedsv_cond_timedwait(perl_cond *cond, perl_mutex *mut, double abs) abs -= (NV)ts.tv_sec; ts.tv_nsec = (long)(abs * 1000000000.0); -#if defined(__clang__) || defined(__clang) +#if defined(CLANG_DIAG_IGNORE) CLANG_DIAG_IGNORE(-Wthread-safety); /* warning: calling function 'pthread_cond_timedwait' requires holding mutex 'mut' exclusively [-Wthread-safety-analysis] */ #endif switch (pthread_cond_timedwait(cond, mut, &ts)) { -#if defined(__clang__) || defined(__clang) +/* perl.h defines CLANG_DIAG_* but only in 5.24+ */ +#if defined(CLANG_DIAG_RESTORE) CLANG_DIAG_RESTORE; #endif |