Lines Matching refs:mMutex
98 err = pthread_mutex_init(&tp->mMutex, (const pthread_mutexattr_t *) NULL); in ThreadPool_init()
175 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_deinit_internal()
182 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_deinit_internal()
191 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_deinit_internal()
202 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_deinit_internal()
205 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_deinit_internal()
208 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_deinit_internal()
223 ok = pthread_mutex_destroy(&tp->mMutex); in ThreadPool_deinit_internal()
280 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_add()
284 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_add()
297 ok = pthread_cond_wait(&tp->mCondNotFull, &tp->mMutex); in ThreadPool_add()
303 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_add()
321 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_add()
331 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_remove()
343 ok = pthread_cond_wait(&tp->mCondNotEmpty, &tp->mMutex); in ThreadPool_remove()
365 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_remove()