Lines Matching refs:lock
264 CRYPTO_RWLOCK *lock; member
286 b->lock = CRYPTO_THREAD_lock_new(); in dgram_pair_init()
287 if (b->lock == NULL) { in dgram_pair_init()
330 CRYPTO_THREAD_lock_free(b->lock); in dgram_pair_free()
504 if (CRYPTO_THREAD_write_lock(readb->lock) == 0) in dgram_pair_ctrl_pending()
515 CRYPTO_THREAD_unlock(readb->lock); in dgram_pair_ctrl_pending()
529 if (CRYPTO_THREAD_read_lock(b->lock) == 0) in dgram_pair_ctrl_get_write_guarantee()
543 CRYPTO_THREAD_unlock(b->lock); in dgram_pair_ctrl_get_write_guarantee()
972 if (CRYPTO_THREAD_write_lock(x->lock) == 0) in dgram_pair_lock_both_write()
975 if (CRYPTO_THREAD_write_lock(y->lock) == 0) { in dgram_pair_lock_both_write()
976 CRYPTO_THREAD_unlock(x->lock); in dgram_pair_lock_both_write()
986 CRYPTO_THREAD_unlock(a->lock); in dgram_pair_unlock_both()
987 CRYPTO_THREAD_unlock(b->lock); in dgram_pair_unlock_both()
1060 if (CRYPTO_THREAD_write_lock(readb->lock) == 0) { in dgram_pair_recvmmsg()
1088 CRYPTO_THREAD_unlock(readb->lock); in dgram_pair_recvmmsg()
1104 if (CRYPTO_THREAD_write_lock(b->lock) == 0) { in dgram_mem_read()
1118 CRYPTO_THREAD_unlock(b->lock); in dgram_mem_read()
1265 if (CRYPTO_THREAD_write_lock(b->lock) == 0) { in dgram_pair_write()
1278 CRYPTO_THREAD_unlock(b->lock); in dgram_pair_write()
1297 if (CRYPTO_THREAD_write_lock(b->lock) == 0) { in dgram_pair_sendmmsg()
1324 CRYPTO_THREAD_unlock(b->lock); in dgram_pair_sendmmsg()