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 …]
312 int uv_rwlock_init(uv_rwlock_t* rwlock) { in uv_rwlock_init() argument313 memset(rwlock, 0, sizeof(*rwlock)); in uv_rwlock_init()314 InitializeSRWLock(&rwlock->read_write_lock_); in uv_rwlock_init()320 void uv_rwlock_destroy(uv_rwlock_t* rwlock) { in uv_rwlock_destroy() argument326 void uv_rwlock_rdlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdlock() argument327 AcquireSRWLockShared(&rwlock->read_write_lock_); in uv_rwlock_rdlock()331 int uv_rwlock_tryrdlock(uv_rwlock_t* rwlock) { in uv_rwlock_tryrdlock() argument339 void uv_rwlock_rdunlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdunlock() argument344 void uv_rwlock_wrlock(uv_rwlock_t* rwlock) { in uv_rwlock_wrlock() argument349 int uv_rwlock_trywrlock(uv_rwlock_t* rwlock) { in uv_rwlock_trywrlock() argument[all …]
369 int uv_rwlock_init(uv_rwlock_t* rwlock) { in uv_rwlock_init() argument374 void uv_rwlock_destroy(uv_rwlock_t* rwlock) { in uv_rwlock_destroy() argument375 if (pthread_rwlock_destroy(rwlock)) in uv_rwlock_destroy()380 void uv_rwlock_rdlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdlock() argument381 if (pthread_rwlock_rdlock(rwlock)) in uv_rwlock_rdlock()389 err = pthread_rwlock_tryrdlock(rwlock); in uv_rwlock_tryrdlock()401 if (pthread_rwlock_unlock(rwlock)) in uv_rwlock_rdunlock()406 void uv_rwlock_wrlock(uv_rwlock_t* rwlock) { in uv_rwlock_wrlock() argument407 if (pthread_rwlock_wrlock(rwlock)) in uv_rwlock_wrlock()415 err = pthread_rwlock_trywrlock(rwlock); in uv_rwlock_trywrlock()[all …]
190 .. c:function:: int uv_rwlock_init(uv_rwlock_t* rwlock)191 .. c:function:: void uv_rwlock_destroy(uv_rwlock_t* rwlock)192 .. c:function:: void uv_rwlock_rdlock(uv_rwlock_t* rwlock)193 .. c:function:: int uv_rwlock_tryrdlock(uv_rwlock_t* rwlock)194 .. c:function:: void uv_rwlock_rdunlock(uv_rwlock_t* rwlock)195 .. c:function:: void uv_rwlock_wrlock(uv_rwlock_t* rwlock)196 .. c:function:: int uv_rwlock_trywrlock(uv_rwlock_t* rwlock)197 .. c:function:: void uv_rwlock_wrunlock(uv_rwlock_t* rwlock)
1832 UV_EXTERN int uv_rwlock_init(uv_rwlock_t* rwlock);1833 UV_EXTERN void uv_rwlock_destroy(uv_rwlock_t* rwlock);1834 UV_EXTERN void uv_rwlock_rdlock(uv_rwlock_t* rwlock);1835 UV_EXTERN int uv_rwlock_tryrdlock(uv_rwlock_t* rwlock);1836 UV_EXTERN void uv_rwlock_rdunlock(uv_rwlock_t* rwlock);1837 UV_EXTERN void uv_rwlock_wrlock(uv_rwlock_t* rwlock);1838 UV_EXTERN int uv_rwlock_trywrlock(uv_rwlock_t* rwlock);1839 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 31 milliseconds