Lines Matching refs:lock
33 ossl_crypto_mutex_lock(tdata->lock); in ossl_get_avail_threads()
35 ossl_crypto_mutex_unlock(tdata->lock); in ossl_get_avail_threads()
49 ossl_crypto_mutex_lock(tdata->lock); in ossl_crypto_thread_start()
51 ossl_crypto_mutex_unlock(tdata->lock); in ossl_crypto_thread_start()
56 ossl_crypto_condvar_wait(tdata->cond_finished, tdata->lock); in ossl_crypto_thread_start()
58 ossl_crypto_mutex_unlock(tdata->lock); in ossl_crypto_thread_start()
62 ossl_crypto_mutex_lock(tdata->lock); in ossl_crypto_thread_start()
64 ossl_crypto_mutex_unlock(tdata->lock); in ossl_crypto_thread_start()
88 ossl_crypto_mutex_lock(tdata->lock); in ossl_crypto_thread_join()
91 ossl_crypto_mutex_unlock(tdata->lock); in ossl_crypto_thread_join()
134 t->lock = ossl_crypto_mutex_new(); in ossl_threads_ctx_new()
137 if (t->lock == NULL || t->cond_finished == NULL) in ossl_threads_ctx_new()
154 ossl_crypto_mutex_free(&t->lock); in ossl_threads_ctx_free()