Lines Matching defs:pool
26 /* This is the RTEMS implementation of the thread pool management
36 /* For each scheduler instance there may be a thread pool reservoir
76 struct gomp_thread_pool *pool = thr->thread_pool;
77 if (__builtin_expect (pool == NULL, 0))
79 pool = gomp_malloc_cleared (sizeof (*pool));
80 pool->threads_busy = nthreads;
81 thr->thread_pool = pool;
83 return pool;
89 struct gomp_thread_pool *pool;
100 pool = res->pools[--res->index];
102 pool->threads_busy = nthreads;
103 thr->thread_pool = pool;
106 pool = gomp_get_own_thread_pool (thr, nthreads);
108 return pool;
112 gomp_release_thread_pool (struct gomp_thread_pool *pool)
119 res->pools[res->index++] = pool;