Lines Matching refs:mutex
98 pthread_mutex_t *mutex; in ossl_crypto_mutex_new() local
100 if ((mutex = OPENSSL_zalloc(sizeof(*mutex))) == NULL) in ossl_crypto_mutex_new()
102 if (pthread_mutex_init(mutex, NULL) != 0) { in ossl_crypto_mutex_new()
103 OPENSSL_free(mutex); in ossl_crypto_mutex_new()
106 return (CRYPTO_MUTEX *)mutex; in ossl_crypto_mutex_new()
109 int ossl_crypto_mutex_try_lock(CRYPTO_MUTEX *mutex) in ossl_crypto_mutex_try_lock() argument
113 mutex_p = (pthread_mutex_t *)mutex; in ossl_crypto_mutex_try_lock()
121 void ossl_crypto_mutex_lock(CRYPTO_MUTEX *mutex) in ossl_crypto_mutex_lock() argument
126 mutex_p = (pthread_mutex_t *)mutex; in ossl_crypto_mutex_lock()
131 void ossl_crypto_mutex_unlock(CRYPTO_MUTEX *mutex) in ossl_crypto_mutex_unlock() argument
136 mutex_p = (pthread_mutex_t *)mutex; in ossl_crypto_mutex_unlock()
141 void ossl_crypto_mutex_free(CRYPTO_MUTEX **mutex) in ossl_crypto_mutex_free() argument
145 if (mutex == NULL) in ossl_crypto_mutex_free()
148 mutex_p = (pthread_mutex_t **)mutex; in ossl_crypto_mutex_free()
152 *mutex = NULL; in ossl_crypto_mutex_free()
168 void ossl_crypto_condvar_wait(CRYPTO_CONDVAR *cv, CRYPTO_MUTEX *mutex) in ossl_crypto_condvar_wait() argument
174 mutex_p = (pthread_mutex_t *)mutex; in ossl_crypto_condvar_wait()
178 void ossl_crypto_condvar_wait_timeout(CRYPTO_CONDVAR *cv, CRYPTO_MUTEX *mutex, in ossl_crypto_condvar_wait_timeout() argument
182 pthread_mutex_t *mutex_p = (pthread_mutex_t *)mutex; in ossl_crypto_condvar_wait_timeout()