Home
last modified time | relevance | path

Searched refs:rwlock (Results 1 – 7 of 7) sorted by relevance

/libuv/test/
H A Dtest-mutexes.c30 static uv_rwlock_t rwlock; variable
74 uv_rwlock_t rwlock; in TEST_IMPL() local
77 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 …]
/libuv/src/win/
H A Dthread.c386 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
413 void uv_rwlock_rdunlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdunlock() argument
418 void uv_rwlock_wrlock(uv_rwlock_t* rwlock) { in uv_rwlock_wrlock() argument
423 int uv_rwlock_trywrlock(uv_rwlock_t* rwlock) { in uv_rwlock_trywrlock() argument
[all …]
/libuv/src/unix/
H A Dthread.c390 int uv_rwlock_init(uv_rwlock_t* rwlock) { in uv_rwlock_init() argument
395 void uv_rwlock_destroy(uv_rwlock_t* rwlock) { in uv_rwlock_destroy() argument
396 if (pthread_rwlock_destroy(rwlock)) in uv_rwlock_destroy()
401 void uv_rwlock_rdlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdlock() argument
402 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() argument
428 if (pthread_rwlock_wrlock(rwlock)) in uv_rwlock_wrlock()
436 err = pthread_rwlock_trywrlock(rwlock); in uv_rwlock_trywrlock()
[all …]
/libuv/docs/src/
H A Dthreading.rst215 .. 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)
/libuv/include/
H A Duv.h1838 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);
/libuv/docs/src/guide/
H A Dthreads.rst358 a mutex or rwlock to ensure accesses are performed in the right order.
/libuv/
H A DChangeLog4087 * unix: consolidate rwlock tryrdlock trywrlock errors (Saúl Ibarra Corretgé)
4126 * win: fix unsavory rwlock fallback implementation (Bert Belder)

Completed in 29 milliseconds