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.c312 int uv_rwlock_init(uv_rwlock_t* rwlock) { in uv_rwlock_init() argument
313 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() argument
326 void uv_rwlock_rdlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdlock() argument
327 AcquireSRWLockShared(&rwlock->read_write_lock_); in uv_rwlock_rdlock()
331 int uv_rwlock_tryrdlock(uv_rwlock_t* rwlock) { in uv_rwlock_tryrdlock() argument
339 void uv_rwlock_rdunlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdunlock() argument
344 void uv_rwlock_wrlock(uv_rwlock_t* rwlock) { in uv_rwlock_wrlock() argument
349 int uv_rwlock_trywrlock(uv_rwlock_t* rwlock) { in uv_rwlock_trywrlock() argument
[all …]
/libuv/src/unix/
H A Dthread.c369 int uv_rwlock_init(uv_rwlock_t* rwlock) { in uv_rwlock_init() argument
374 void uv_rwlock_destroy(uv_rwlock_t* rwlock) { in uv_rwlock_destroy() argument
375 if (pthread_rwlock_destroy(rwlock)) in uv_rwlock_destroy()
380 void uv_rwlock_rdlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdlock() argument
381 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() argument
407 if (pthread_rwlock_wrlock(rwlock)) in uv_rwlock_wrlock()
415 err = pthread_rwlock_trywrlock(rwlock); in uv_rwlock_trywrlock()
[all …]
/libuv/docs/src/
H A Dthreading.rst190 .. 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)
/libuv/include/
H A Duv.h1832 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);
/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 31 milliseconds