diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-02 14:30:37 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-02 14:30:37 +0000 |
commit | dc25ce58ec0898a3d124da870ea405c2a105ffee (patch) | |
tree | d6c1e70ff5cd0df4588c7a0452b86b142be9c0cd /libgomp/parallel.c | |
parent | c63a2732bd1cc8f18cbf3f073faee40fd7ae3b11 (diff) | |
download | gcc-dc25ce58ec0898a3d124da870ea405c2a105ffee.tar.gz |
PR libgomp/45240
* parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
at the end if sync builtins aren't supported.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167370 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/parallel.c')
-rw-r--r-- | libgomp/parallel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgomp/parallel.c b/libgomp/parallel.c index d83d1698fd5..c0966df9f9a 100644 --- a/libgomp/parallel.c +++ b/libgomp/parallel.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005, 2007, 2008, 2009 Free Software Foundation, Inc. +/* Copyright (C) 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Contributed by Richard Henderson <rth@redhat.com>. This file is part of the GNU OpenMP Library (libgomp). @@ -123,6 +123,7 @@ GOMP_parallel_end (void) #else gomp_mutex_lock (&gomp_remaining_threads_lock); gomp_remaining_threads_count -= team->nthreads - 1; + gomp_mutex_unlock (&gomp_remaining_threads_lock); #endif } } |