Home
last modified time | relevance | path

Searched refs:oncelock (Results 1 – 1 of 1) sorted by relevance

/freebsd/crypto/openssl/crypto/
H A Dcontext.c41 CRYPTO_RWLOCK *oncelock; member
81 ctx->oncelock = CRYPTO_THREAD_lock_new(); in context_init()
82 if (ctx->oncelock == NULL) in context_init()
111 CRYPTO_THREAD_lock_free(ctx->oncelock); in context_init()
139 CRYPTO_THREAD_lock_free(ctx->oncelock); in context_deinit()
458 if (!CRYPTO_THREAD_read_lock(ctx->oncelock)) in ossl_lib_ctx_run_once()
463 CRYPTO_THREAD_unlock(ctx->oncelock); in ossl_lib_ctx_run_once()
468 if (!CRYPTO_THREAD_write_lock(ctx->oncelock)) in ossl_lib_ctx_run_once()
472 CRYPTO_THREAD_unlock(ctx->oncelock); in ossl_lib_ctx_run_once()
479 CRYPTO_THREAD_unlock(ctx->oncelock); in ossl_lib_ctx_run_once()