Lines Matching refs:lock

91 void CRYPTO_MUTEX_init(CRYPTO_MUTEX *lock) {  in CRYPTO_MUTEX_init()  argument
92 if (!InitializeCriticalSectionAndSpinCount((CRITICAL_SECTION *) lock, 0x400)) { in CRYPTO_MUTEX_init()
97 void CRYPTO_MUTEX_lock_read(CRYPTO_MUTEX *lock) { in CRYPTO_MUTEX_lock_read() argument
99 EnterCriticalSection((CRITICAL_SECTION *) lock); in CRYPTO_MUTEX_lock_read()
102 void CRYPTO_MUTEX_lock_write(CRYPTO_MUTEX *lock) { in CRYPTO_MUTEX_lock_write() argument
103 EnterCriticalSection((CRITICAL_SECTION *) lock); in CRYPTO_MUTEX_lock_write()
106 void CRYPTO_MUTEX_unlock(CRYPTO_MUTEX *lock) { in CRYPTO_MUTEX_unlock() argument
107 LeaveCriticalSection((CRITICAL_SECTION *) lock); in CRYPTO_MUTEX_unlock()
110 void CRYPTO_MUTEX_cleanup(CRYPTO_MUTEX *lock) { in CRYPTO_MUTEX_cleanup() argument
111 DeleteCriticalSection((CRITICAL_SECTION *) lock); in CRYPTO_MUTEX_cleanup()
115 struct CRYPTO_STATIC_MUTEX *lock = arg; in static_lock_init() local
116 if (!InitializeCriticalSectionAndSpinCount(&lock->lock, 0x400)) { in static_lock_init()
121 void CRYPTO_STATIC_MUTEX_lock_read(struct CRYPTO_STATIC_MUTEX *lock) { in CRYPTO_STATIC_MUTEX_lock_read() argument
123 run_once(&lock->once, static_lock_init, lock); in CRYPTO_STATIC_MUTEX_lock_read()
124 EnterCriticalSection(&lock->lock); in CRYPTO_STATIC_MUTEX_lock_read()
127 void CRYPTO_STATIC_MUTEX_lock_write(struct CRYPTO_STATIC_MUTEX *lock) { in CRYPTO_STATIC_MUTEX_lock_write() argument
128 CRYPTO_STATIC_MUTEX_lock_read(lock); in CRYPTO_STATIC_MUTEX_lock_write()
131 void CRYPTO_STATIC_MUTEX_unlock(struct CRYPTO_STATIC_MUTEX *lock) { in CRYPTO_STATIC_MUTEX_unlock() argument
132 LeaveCriticalSection(&lock->lock); in CRYPTO_STATIC_MUTEX_unlock()