summaryrefslogtreecommitdiff
path: root/dist/threads
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2015-11-05 19:13:22 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2015-11-23 06:55:12 -0500
commitea664b0d00cafa79b8826f14270233619ebad0c6 (patch)
tree99c2210f062dd9afd1676a670a750705ec05fdb8 /dist/threads
parentf1540bedca12c5d2c59f2eedaac8042822183aca (diff)
downloadperl-ea664b0d00cafa79b8826f14270233619ebad0c6.tar.gz
annotate S_ithread_free mutex use
threads.xs:276:13: warning: releasing mutex 'thread->mutex' that was not held [-Wthread-safety-analysis] MUTEX_UNLOCK(&thread->mutex); threads.xs:282:5: warning: releasing mutex 'thread->mutex' that was not held [-Wthread-safety-analysis] MUTEX_UNLOCK(&thread->mutex); threads.xs:394:1: warning: mutex 'thread->mutex' is still held at the end of function [-Wthread-safety-analysis] } threads.xs:677:1: warning: mutex 'thread->mutex' is still held at the end of function [-Wthread-safety-analysis] }
Diffstat (limited to 'dist/threads')
-rw-r--r--dist/threads/threads.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/dist/threads/threads.xs b/dist/threads/threads.xs
index 366877eb09..10b0d9f0fd 100644
--- a/dist/threads/threads.xs
+++ b/dist/threads/threads.xs
@@ -264,6 +264,7 @@ S_ithread_clear(pTHX_ ithread *thread)
*/
STATIC void
S_ithread_free(pTHX_ ithread *thread)
+ PERL_TSA_RELEASE(thread->mutex)
{
#ifdef WIN32
HANDLE handle;