Searched refs:rwlock (Results 1 – 7 of 7) sorted by relevance
30 static uv_rwlock_t rwlock; variable74 uv_rwlock_t rwlock; in TEST_IMPL() local77 r = uv_rwlock_init(&rwlock); in TEST_IMPL()80 uv_rwlock_rdlock(&rwlock); in TEST_IMPL()81 uv_rwlock_rdunlock(&rwlock); in TEST_IMPL()82 uv_rwlock_wrlock(&rwlock); in TEST_IMPL()83 uv_rwlock_wrunlock(&rwlock); in TEST_IMPL()84 uv_rwlock_destroy(&rwlock); in TEST_IMPL()120 uv_rwlock_rdunlock(&rwlock); in thread_rwlock_trylock_peer()129 uv_rwlock_wrunlock(&rwlock); in thread_rwlock_trylock_peer()[all …]
386 int uv_rwlock_init(uv_rwlock_t* rwlock) { in uv_rwlock_init() argument387 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() argument400 void uv_rwlock_rdlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdlock() argument401 AcquireSRWLockShared(&rwlock->read_write_lock_); in uv_rwlock_rdlock()405 int uv_rwlock_tryrdlock(uv_rwlock_t* rwlock) { in uv_rwlock_tryrdlock() argument413 void uv_rwlock_rdunlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdunlock() argument418 void uv_rwlock_wrlock(uv_rwlock_t* rwlock) { in uv_rwlock_wrlock() argument423 int uv_rwlock_trywrlock(uv_rwlock_t* rwlock) { in uv_rwlock_trywrlock() argument[all …]
390 int uv_rwlock_init(uv_rwlock_t* rwlock) { in uv_rwlock_init() argument395 void uv_rwlock_destroy(uv_rwlock_t* rwlock) { in uv_rwlock_destroy() argument396 if (pthread_rwlock_destroy(rwlock)) in uv_rwlock_destroy()401 void uv_rwlock_rdlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdlock() argument402 if (pthread_rwlock_rdlock(rwlock)) in uv_rwlock_rdlock()410 err = pthread_rwlock_tryrdlock(rwlock); in uv_rwlock_tryrdlock()422 if (pthread_rwlock_unlock(rwlock)) in uv_rwlock_rdunlock()427 void uv_rwlock_wrlock(uv_rwlock_t* rwlock) { in uv_rwlock_wrlock() argument428 if (pthread_rwlock_wrlock(rwlock)) in uv_rwlock_wrlock()436 err = pthread_rwlock_trywrlock(rwlock); in uv_rwlock_trywrlock()[all …]
215 .. c:function:: int uv_rwlock_init(uv_rwlock_t* rwlock)216 .. c:function:: void uv_rwlock_destroy(uv_rwlock_t* rwlock)217 .. c:function:: void uv_rwlock_rdlock(uv_rwlock_t* rwlock)218 .. c:function:: int uv_rwlock_tryrdlock(uv_rwlock_t* rwlock)219 .. c:function:: void uv_rwlock_rdunlock(uv_rwlock_t* rwlock)220 .. c:function:: void uv_rwlock_wrlock(uv_rwlock_t* rwlock)221 .. c:function:: int uv_rwlock_trywrlock(uv_rwlock_t* rwlock)222 .. c:function:: void uv_rwlock_wrunlock(uv_rwlock_t* rwlock)
1838 UV_EXTERN int uv_rwlock_init(uv_rwlock_t* rwlock);1839 UV_EXTERN void uv_rwlock_destroy(uv_rwlock_t* rwlock);1840 UV_EXTERN void uv_rwlock_rdlock(uv_rwlock_t* rwlock);1841 UV_EXTERN int uv_rwlock_tryrdlock(uv_rwlock_t* rwlock);1842 UV_EXTERN void uv_rwlock_rdunlock(uv_rwlock_t* rwlock);1843 UV_EXTERN void uv_rwlock_wrlock(uv_rwlock_t* rwlock);1844 UV_EXTERN int uv_rwlock_trywrlock(uv_rwlock_t* rwlock);1845 UV_EXTERN void uv_rwlock_wrunlock(uv_rwlock_t* rwlock);
358 a mutex or rwlock to ensure accesses are performed in the right order.
4087 * unix: consolidate rwlock tryrdlock trywrlock errors (Saúl Ibarra Corretgé)4126 * win: fix unsavory rwlock fallback implementation (Bert Belder)
Completed in 29 milliseconds