Lines Matching defs:rwlock
261 __thr_rwlock_rdlock(struct urwlock *rwlock, int flags,
277 return _umtx_op_err(rwlock, UMTX_OP_RW_RDLOCK, flags, (void *)tm_size, tm_p);
281 __thr_rwlock_wrlock(struct urwlock *rwlock, const struct timespec *tsp)
296 return _umtx_op_err(rwlock, UMTX_OP_RW_WRLOCK, 0, (void *)tm_size, tm_p);
300 __thr_rwlock_unlock(struct urwlock *rwlock)
302 return _umtx_op_err(rwlock, UMTX_OP_RW_UNLOCK, 0, NULL, NULL);
306 _thr_rwl_rdlock(struct urwlock *rwlock)
311 if (_thr_rwlock_tryrdlock(rwlock, URWLOCK_PREFER_READER) == 0)
313 ret = __thr_rwlock_rdlock(rwlock, URWLOCK_PREFER_READER, NULL);
322 _thr_rwl_wrlock(struct urwlock *rwlock)
327 if (_thr_rwlock_trywrlock(rwlock) == 0)
329 ret = __thr_rwlock_wrlock(rwlock, NULL);
338 _thr_rwl_unlock(struct urwlock *rwlock)
340 if (_thr_rwlock_unlock(rwlock))