Lines Matching refs:rwlock
457 CRYPTO_win_rwlock *rwlock; in CRYPTO_THREAD_lock_new() local
462 rwlock = lock; in CRYPTO_THREAD_lock_new()
463 InitializeSRWLock(&rwlock->lock); in CRYPTO_THREAD_lock_new()
487 CRYPTO_win_rwlock *rwlock = lock; in CRYPTO_THREAD_read_lock() local
489 AcquireSRWLockShared(&rwlock->lock); in CRYPTO_THREAD_read_lock()
499 CRYPTO_win_rwlock *rwlock = lock; in CRYPTO_THREAD_write_lock() local
501 AcquireSRWLockExclusive(&rwlock->lock); in CRYPTO_THREAD_write_lock()
502 rwlock->exclusive = 1; in CRYPTO_THREAD_write_lock()
512 CRYPTO_win_rwlock *rwlock = lock; in CRYPTO_THREAD_unlock() local
514 if (rwlock->exclusive) { in CRYPTO_THREAD_unlock()
515 rwlock->exclusive = 0; in CRYPTO_THREAD_unlock()
516 ReleaseSRWLockExclusive(&rwlock->lock); in CRYPTO_THREAD_unlock()
518 ReleaseSRWLockShared(&rwlock->lock); in CRYPTO_THREAD_unlock()