Lines Matching refs:tdata
45 OSSL_LIB_CTX_THREADS *tdata = OSSL_LIB_CTX_GET_THREADS(ctx); in OSSL_get_max_threads() local
47 if (tdata == NULL) in OSSL_get_max_threads()
50 ossl_crypto_mutex_lock(tdata->lock); in OSSL_get_max_threads()
51 ret = tdata->max_threads; in OSSL_get_max_threads()
52 ossl_crypto_mutex_unlock(tdata->lock); in OSSL_get_max_threads()
60 OSSL_LIB_CTX_THREADS *tdata; in OSSL_set_max_threads() local
62 tdata = OSSL_LIB_CTX_GET_THREADS(ctx); in OSSL_set_max_threads()
63 if (tdata == NULL) in OSSL_set_max_threads()
66 ossl_crypto_mutex_lock(tdata->lock); in OSSL_set_max_threads()
67 tdata->max_threads = max_threads; in OSSL_set_max_threads()
68 ossl_crypto_mutex_unlock(tdata->lock); in OSSL_set_max_threads()