Lines Matching refs:rwlock
390 int uv_rwlock_init(uv_rwlock_t* rwlock) { in uv_rwlock_init() argument
391 return UV__ERR(pthread_rwlock_init(rwlock, NULL)); in uv_rwlock_init()
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()
407 int uv_rwlock_tryrdlock(uv_rwlock_t* rwlock) { in uv_rwlock_tryrdlock() argument
410 err = pthread_rwlock_tryrdlock(rwlock); in uv_rwlock_tryrdlock()
421 void uv_rwlock_rdunlock(uv_rwlock_t* rwlock) { in uv_rwlock_rdunlock() argument
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()
433 int uv_rwlock_trywrlock(uv_rwlock_t* rwlock) { in uv_rwlock_trywrlock() argument
436 err = pthread_rwlock_trywrlock(rwlock); in uv_rwlock_trywrlock()
447 void uv_rwlock_wrunlock(uv_rwlock_t* rwlock) { in uv_rwlock_wrunlock() argument
448 if (pthread_rwlock_unlock(rwlock)) in uv_rwlock_wrunlock()