Lines Matching refs:tp_mutex

64 			pthread_mutex_unlock(&tpool->tp_mutex);  in worker_cleanup()
71 pthread_mutex_unlock(&tpool->tp_mutex); in worker_cleanup()
94 pthread_mutex_lock(&tpool->tp_mutex); in job_cleanup()
117 pthread_mutex_lock(&tpool->tp_mutex); in tpool_worker()
136 &tpool->tp_mutex); in tpool_worker()
143 &tpool->tp_mutex, &timeout) != 0) { in tpool_worker()
172 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_worker()
239 (void) pthread_mutex_init(&tpool->tp_mutex, NULL); in tpool_create()
273 pthread_mutex_lock(&tpool->tp_mutex); in tpool_dispatch()
290 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_dispatch()
304 pthread_mutex_lock(&tpool->tp_mutex); in tpool_destroy()
305 pthread_cleanup_push((_Voidfp)pthread_mutex_unlock, &tpool->tp_mutex); in tpool_destroy()
319 (void) pthread_cond_wait(&tpool->tp_waitcv, &tpool->tp_mutex); in tpool_destroy()
324 (void) pthread_cond_wait(&tpool->tp_busycv, &tpool->tp_mutex); in tpool_destroy()
338 pthread_mutex_lock(&tpool->tp_mutex); in tpool_abandon()
341 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_abandon()
348 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_abandon()
360 pthread_mutex_lock(&tpool->tp_mutex); in tpool_wait()
361 pthread_cleanup_push((_Voidfp)pthread_mutex_unlock, &tpool->tp_mutex); in tpool_wait()
364 (void) pthread_cond_wait(&tpool->tp_waitcv, &tpool->tp_mutex); in tpool_wait()
373 pthread_mutex_lock(&tpool->tp_mutex); in tpool_suspend()
375 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_suspend()
383 pthread_mutex_lock(&tpool->tp_mutex); in tpool_suspended()
385 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_suspended()
395 pthread_mutex_lock(&tpool->tp_mutex); in tpool_resume()
397 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_resume()
408 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_resume()
417 pthread_mutex_lock(&tpool->tp_mutex); in tpool_member()
420 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_member()
424 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_member()