Lines Matching refs:tp_mutex
79 pthread_mutex_unlock(&tpool->tp_mutex); in worker_cleanup()
86 pthread_mutex_unlock(&tpool->tp_mutex); in worker_cleanup()
110 pthread_mutex_lock(&tpool->tp_mutex); in job_cleanup()
132 pthread_mutex_lock(&tpool->tp_mutex); in tpool_worker()
151 &tpool->tp_mutex); in tpool_worker()
159 &tpool->tp_mutex, &ts) != 0) { in tpool_worker()
189 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_worker()
361 (void) pthread_mutex_init(&tpool->tp_mutex, NULL); in tpool_create()
424 pthread_mutex_lock(&tpool->tp_mutex); in tpool_dispatch()
441 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_dispatch()
450 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_cleanup()
466 pthread_mutex_lock(&tpool->tp_mutex); in tpool_destroy()
481 (void) pthread_cond_wait(&tpool->tp_waitcv, &tpool->tp_mutex); in tpool_destroy()
486 (void) pthread_cond_wait(&tpool->tp_busycv, &tpool->tp_mutex); in tpool_destroy()
501 pthread_mutex_lock(&tpool->tp_mutex); in tpool_abandon()
504 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_abandon()
511 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_abandon()
525 pthread_mutex_lock(&tpool->tp_mutex); in tpool_wait()
529 (void) pthread_cond_wait(&tpool->tp_waitcv, &tpool->tp_mutex); in tpool_wait()
540 pthread_mutex_lock(&tpool->tp_mutex); in tpool_suspend()
542 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_suspend()
552 pthread_mutex_lock(&tpool->tp_mutex); in tpool_suspended()
554 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_suspended()
566 pthread_mutex_lock(&tpool->tp_mutex); in tpool_resume()
568 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_resume()
579 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_resume()
590 pthread_mutex_lock(&tpool->tp_mutex); in tpool_member()
593 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_member()
597 pthread_mutex_unlock(&tpool->tp_mutex); in tpool_member()