Lines Matching refs:lock
31 void CRYPTO_MUTEX_init(CRYPTO_MUTEX *lock) { in CRYPTO_MUTEX_init() argument
32 if (pthread_rwlock_init((pthread_rwlock_t *) lock, NULL) != 0) { in CRYPTO_MUTEX_init()
37 void CRYPTO_MUTEX_lock_read(CRYPTO_MUTEX *lock) { in CRYPTO_MUTEX_lock_read() argument
38 if (pthread_rwlock_rdlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_read()
43 void CRYPTO_MUTEX_lock_write(CRYPTO_MUTEX *lock) { in CRYPTO_MUTEX_lock_write() argument
44 if (pthread_rwlock_wrlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_write()
49 void CRYPTO_MUTEX_unlock(CRYPTO_MUTEX *lock) { in CRYPTO_MUTEX_unlock() argument
50 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock()
55 void CRYPTO_MUTEX_cleanup(CRYPTO_MUTEX *lock) { in CRYPTO_MUTEX_cleanup() argument
56 pthread_rwlock_destroy((pthread_rwlock_t *) lock); in CRYPTO_MUTEX_cleanup()
59 void CRYPTO_STATIC_MUTEX_lock_read(struct CRYPTO_STATIC_MUTEX *lock) { in CRYPTO_STATIC_MUTEX_lock_read() argument
60 if (pthread_rwlock_rdlock(&lock->lock) != 0) { in CRYPTO_STATIC_MUTEX_lock_read()
65 void CRYPTO_STATIC_MUTEX_lock_write(struct CRYPTO_STATIC_MUTEX *lock) { in CRYPTO_STATIC_MUTEX_lock_write() argument
66 if (pthread_rwlock_wrlock(&lock->lock) != 0) { in CRYPTO_STATIC_MUTEX_lock_write()
71 void CRYPTO_STATIC_MUTEX_unlock(struct CRYPTO_STATIC_MUTEX *lock) { in CRYPTO_STATIC_MUTEX_unlock() argument
72 if (pthread_rwlock_unlock(&lock->lock) != 0) { in CRYPTO_STATIC_MUTEX_unlock()