diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-20 20:54:45 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-20 20:54:45 +0000 |
commit | af0f9c72ce981e237c6f07e51862c508823c52e5 (patch) | |
tree | ac1520d8302b1b216a402af4fbd1d4c07a0c1b99 /libgomp/team.c | |
parent | 54e6ab3ddcc8b58e94bb55e34f4402afd56f4eb8 (diff) | |
download | ppe42-gcc-af0f9c72ce981e237c6f07e51862c508823c52e5.tar.gz ppe42-gcc-af0f9c72ce981e237c6f07e51862c508823c52e5.zip |
PR libgomp/40174
* team.c (gomp_thread_start): Destroy thr->release semaphore.
(gomp_free_pool_helper): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147747 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/team.c')
-rw-r--r-- | libgomp/team.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgomp/team.c b/libgomp/team.c index 4110e3f22b2..44ffd56095f 100644 --- a/libgomp/team.c +++ b/libgomp/team.c @@ -125,6 +125,7 @@ gomp_thread_start (void *xdata) while (local_fn); } + gomp_sem_destroy (&thr->release); return NULL; } @@ -201,6 +202,7 @@ gomp_free_pool_helper (void *thread_pool) struct gomp_thread_pool *pool = (struct gomp_thread_pool *) thread_pool; gomp_barrier_wait_last (&pool->threads_dock); + gomp_sem_destroy (&gomp_thread ()->release); pthread_exit (NULL); } |