Lines Matching defs:pool
42 sets up a per-team thread pool and transfers control by returning to
96 /* Allocate and initialize a pool of threads in the team.
99 struct gomp_thread_pool *pool = team_malloc (sizeof (*pool));
100 pool->threads = team_malloc (sizeof (void *) * numthreads);
102 pool->threads[tid] = &thrs[tid];
103 pool->threads_size = numthreads;
104 pool->threads_used = numthreads;
105 pool->threads_busy = 1;
106 pool->last_team = NULL;
107 gomp_simple_barrier_init (&pool->threads_dock, numthreads);
108 thrs->thread_pool = pool;
132 gomp_thread_start (struct gomp_thread_pool *pool)
137 thr->thread_pool = pool;
145 gomp_simple_barrier_wait (&pool->threads_dock);
178 struct gomp_thread_pool *pool;
182 pool = thr->thread_pool;
212 nthr = pool->threads[i];
230 gomp_simple_barrier_wait (&pool->threads_dock);