Lines Matching refs:lock
51 CRYPTO_RWLOCK *lock; member
65 glob_tevent_reg->lock = CRYPTO_THREAD_lock_new(); in DEFINE_RUN_ONCE_STATIC()
66 if (glob_tevent_reg->skhands == NULL || glob_tevent_reg->lock == NULL) { in DEFINE_RUN_ONCE_STATIC()
68 CRYPTO_THREAD_lock_free(glob_tevent_reg->lock); in DEFINE_RUN_ONCE_STATIC()
163 if (!CRYPTO_THREAD_write_lock(gtr->lock)) in init_thread_push_handlers()
166 CRYPTO_THREAD_unlock(gtr->lock); in init_thread_push_handlers()
179 if (!CRYPTO_THREAD_write_lock(gtr->lock)) in init_thread_remove_handlers()
187 CRYPTO_THREAD_unlock(gtr->lock); in init_thread_remove_handlers()
191 CRYPTO_THREAD_unlock(gtr->lock); in init_thread_remove_handlers()
340 if (!CRYPTO_THREAD_write_lock(gtr->lock)) in init_thread_stop()
363 CRYPTO_THREAD_unlock(gtr->lock); in init_thread_stop()
433 if (!CRYPTO_THREAD_write_lock(gtr->lock)) in init_thread_deregister()
445 CRYPTO_THREAD_unlock(gtr->lock); in init_thread_deregister()
467 CRYPTO_THREAD_lock_free(gtr->lock); in init_thread_deregister()
471 CRYPTO_THREAD_unlock(gtr->lock); in init_thread_deregister()