Lines Matching refs:active
77 } *active; /* list of active threads */
134 if (pool->head == NULL && pool->active == NULL) {
146 for (b = &pool->active; (a = *b) != NULL; b = &a->next) {
178 struct am_threadpool_active active;
188 active.thread = pthread_self();
232 active.next = pool->active;
233 pool->active = &active;
311 worker_pool->active = NULL;
416 struct am_threadpool_active *active;
427 /* cancel all active workers */
428 for (active = worker_pool->active; active != NULL; active = active->next) {
429 pthread_cancel(active->thread);
432 /* wait for all active workers to finish */
433 while (worker_pool->active != NULL) {