Lines Matching refs:rwlock
288 __thr_rwlock_rdlock(struct urwlock *rwlock, int flags, in __thr_rwlock_rdlock() argument
304 return (_umtx_op_err(rwlock, UMTX_OP_RW_RDLOCK, flags, in __thr_rwlock_rdlock()
309 __thr_rwlock_wrlock(struct urwlock *rwlock, const struct timespec *tsp) in __thr_rwlock_wrlock() argument
324 return (_umtx_op_err(rwlock, UMTX_OP_RW_WRLOCK, 0, (void *)tm_size, in __thr_rwlock_wrlock()
329 __thr_rwlock_unlock(struct urwlock *rwlock) in __thr_rwlock_unlock() argument
332 return (_umtx_op_err(rwlock, UMTX_OP_RW_UNLOCK, 0, NULL, NULL)); in __thr_rwlock_unlock()
336 _thr_rwl_rdlock(struct urwlock *rwlock) in _thr_rwl_rdlock() argument
341 if (_thr_rwlock_tryrdlock(rwlock, URWLOCK_PREFER_READER) == 0) in _thr_rwl_rdlock()
343 ret = __thr_rwlock_rdlock(rwlock, URWLOCK_PREFER_READER, NULL); in _thr_rwl_rdlock()
352 _thr_rwl_wrlock(struct urwlock *rwlock) in _thr_rwl_wrlock() argument
357 if (_thr_rwlock_trywrlock(rwlock) == 0) in _thr_rwl_wrlock()
359 ret = __thr_rwlock_wrlock(rwlock, NULL); in _thr_rwl_wrlock()
368 _thr_rwl_unlock(struct urwlock *rwlock) in _thr_rwl_unlock() argument
371 if (_thr_rwlock_unlock(rwlock)) in _thr_rwl_unlock()