Home
last modified time | relevance | path

Searched refs:URWLOCK_WRITE_OWNER (Results 1 – 5 of 5) sorted by relevance

/freebsd/lib/libthr/thread/
H A Dthr_umtx.h190 wrflags = URWLOCK_WRITE_OWNER; in _thr_rwlock_tryrdlock()
192 wrflags = URWLOCK_WRITE_OWNER | URWLOCK_WRITE_WAITERS; in _thr_rwlock_tryrdlock()
212 while ((state & URWLOCK_WRITE_OWNER) == 0 && in _thr_rwlock_trywrlock()
215 state | URWLOCK_WRITE_OWNER)) in _thr_rwlock_trywrlock()
247 if ((state & URWLOCK_WRITE_OWNER) != 0) { in _thr_rwlock_unlock()
249 URWLOCK_WRITE_OWNER, 0)) in _thr_rwlock_unlock()
H A Dthr_rwlock.c382 if (state & URWLOCK_WRITE_OWNER) { in _Tthr_rwlock_unlock()
389 if (ret == 0 && (state & URWLOCK_WRITE_OWNER) == 0) in _Tthr_rwlock_unlock()
H A Dthr_rtld.c168 if ((state & URWLOCK_WRITE_OWNER) == 0) in _thr_rtld_lock_release()
/freebsd/sys/sys/
H A Dumtx.h62 #define URWLOCK_WRITE_OWNER 0x80000000U macro
/freebsd/sys/kern/
H A Dkern_umtx.c3112 wrflags = URWLOCK_WRITE_OWNER; in do_rw_rdlock()
3307 while ((state & URWLOCK_WRITE_OWNER) == 0 && in do_rw_wrlock()
3310 &oldstate, state | URWLOCK_WRITE_OWNER); in do_rw_wrlock()
3327 if ((state & (URWLOCK_WRITE_OWNER | in do_rw_wrlock()
3352 while (error == 0 && ((state & URWLOCK_WRITE_OWNER) || in do_rw_wrlock()
3375 if ((state & URWLOCK_WRITE_OWNER) == 0 && in do_rw_wrlock()
3395 while ((state & URWLOCK_WRITE_OWNER) || in do_rw_wrlock()
3497 if (state & URWLOCK_WRITE_OWNER) { in do_rw_unlock()
3500 &oldstate, state & ~URWLOCK_WRITE_OWNER); in do_rw_unlock()
3507 if (!(oldstate & URWLOCK_WRITE_OWNER)) { in do_rw_unlock()