Mercurial > hg > CbC > CbC_gcc
comparison libgomp/team.c @ 19:58ad6c70ea60
update gcc from 4.4.0 to 4.4.1.
author | kent@firefly.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 24 Sep 2009 13:21:57 +0900 |
parents | a06113de4d67 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
18:33936f7f2835 | 19:58ad6c70ea60 |
---|---|
123 thr->fn = NULL; | 123 thr->fn = NULL; |
124 } | 124 } |
125 while (local_fn); | 125 while (local_fn); |
126 } | 126 } |
127 | 127 |
128 gomp_sem_destroy (&thr->release); | |
128 return NULL; | 129 return NULL; |
129 } | 130 } |
130 | 131 |
131 | 132 |
132 /* Create a new team data structure. */ | 133 /* Create a new team data structure. */ |
199 gomp_free_pool_helper (void *thread_pool) | 200 gomp_free_pool_helper (void *thread_pool) |
200 { | 201 { |
201 struct gomp_thread_pool *pool | 202 struct gomp_thread_pool *pool |
202 = (struct gomp_thread_pool *) thread_pool; | 203 = (struct gomp_thread_pool *) thread_pool; |
203 gomp_barrier_wait_last (&pool->threads_dock); | 204 gomp_barrier_wait_last (&pool->threads_dock); |
205 gomp_sem_destroy (&gomp_thread ()->release); | |
204 pthread_exit (NULL); | 206 pthread_exit (NULL); |
205 } | 207 } |
206 | 208 |
207 /* Free a thread pool and release its threads. */ | 209 /* Free a thread pool and release its threads. */ |
208 | 210 |