Lines Matching refs:rwlock
386 int uv_rwlock_init(uv_rwlock_t* rwlock) { in uv_rwlock_init() argument
387 memset(rwlock, 0, sizeof(*rwlock)); in uv_rwlock_init()
388 InitializeSRWLock(&rwlock->read_write_lock_); in uv_rwlock_init()
394 void uv_rwlock_destroy(uv_rwlock_t* rwlock) { in uv_rwlock_destroy() argument
400 void uv_rwlock_rdlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdlock() argument
401 AcquireSRWLockShared(&rwlock->read_write_lock_); in uv_rwlock_rdlock()
405 int uv_rwlock_tryrdlock(uv_rwlock_t* rwlock) { in uv_rwlock_tryrdlock() argument
406 if (!TryAcquireSRWLockShared(&rwlock->read_write_lock_)) in uv_rwlock_tryrdlock()
413 void uv_rwlock_rdunlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdunlock() argument
414 ReleaseSRWLockShared(&rwlock->read_write_lock_); in uv_rwlock_rdunlock()
418 void uv_rwlock_wrlock(uv_rwlock_t* rwlock) { in uv_rwlock_wrlock() argument
419 AcquireSRWLockExclusive(&rwlock->read_write_lock_); in uv_rwlock_wrlock()
423 int uv_rwlock_trywrlock(uv_rwlock_t* rwlock) { in uv_rwlock_trywrlock() argument
424 if (!TryAcquireSRWLockExclusive(&rwlock->read_write_lock_)) in uv_rwlock_trywrlock()
431 void uv_rwlock_wrunlock(uv_rwlock_t* rwlock) { in uv_rwlock_wrunlock() argument
432 ReleaseSRWLockExclusive(&rwlock->read_write_lock_); in uv_rwlock_wrunlock()