Commit b7516041 by Jakub Jelinek Committed by Jakub Jelinek

re PR libgomp/45240 (parallel.c: GOMP_parallel_end locks a mutex but fails to…

re PR libgomp/45240 (parallel.c: GOMP_parallel_end locks a mutex but fails to unlock it after atomic operation complete)

	PR libgomp/45240
	* parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
	at the end if sync builtins aren't supported.

From-SVN: r167370
parent 266afdd6
2010-12-02 Jakub Jelinek <jakub@redhat.com>
PR libgomp/45240
* parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
at the end if sync builtins aren't supported.
2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
......
/* 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
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment