Home
last modified time | relevance | path

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

/freebsd-10-stable/lib/libthr/thread/
Dthr_umtx.h161 wrflags = URWLOCK_WRITE_OWNER; in _thr_rwlock_tryrdlock()
163 wrflags = URWLOCK_WRITE_OWNER | URWLOCK_WRITE_WAITERS; in _thr_rwlock_tryrdlock()
182 while (!(state & URWLOCK_WRITE_OWNER) && URWLOCK_READER_COUNT(state) == 0) { in _thr_rwlock_trywrlock()
183 if (atomic_cmpset_acq_32(&rwlock->rw_state, state, state | URWLOCK_WRITE_OWNER)) in _thr_rwlock_trywrlock()
213 if (state & URWLOCK_WRITE_OWNER) { in _thr_rwlock_unlock()
214 if (atomic_cmpset_rel_32(&rwlock->rw_state, URWLOCK_WRITE_OWNER, 0)) in _thr_rwlock_unlock()
Dthr_rwlock.c313 if (state & URWLOCK_WRITE_OWNER) { in _pthread_rwlock_unlock()
320 if (ret == 0 && (state & URWLOCK_WRITE_OWNER) == 0) in _pthread_rwlock_unlock()
Dthr_rtld.c160 if ((state & URWLOCK_WRITE_OWNER) == 0) in _thr_rtld_lock_release()
/freebsd-10-stable/sys/sys/
Dumtx.h51 #define URWLOCK_WRITE_OWNER 0x80000000U macro
/freebsd-10-stable/sys/kern/
Dkern_umtx.c2847 wrflags = URWLOCK_WRITE_OWNER; in do_rw_rdlock()
3031 while (!(state & URWLOCK_WRITE_OWNER) && URWLOCK_READER_COUNT(state) == 0) { in do_rw_wrlock()
3033 &oldstate, state | URWLOCK_WRITE_OWNER); in do_rw_wrlock()
3049 if (!(state & (URWLOCK_WRITE_OWNER|URWLOCK_WRITE_WAITERS)) && in do_rw_wrlock()
3074 while (error == 0 && ((state & URWLOCK_WRITE_OWNER) || in do_rw_wrlock()
3095 if (!(state & URWLOCK_WRITE_OWNER) && URWLOCK_READER_COUNT(state) == 0) { in do_rw_wrlock()
3112 while ((state & URWLOCK_WRITE_OWNER) || URWLOCK_READER_COUNT(state) != 0) { in do_rw_wrlock()
3209 if (state & URWLOCK_WRITE_OWNER) { in do_rw_unlock()
3212 &oldstate, state & ~URWLOCK_WRITE_OWNER); in do_rw_unlock()
3219 if (!(oldstate & URWLOCK_WRITE_OWNER)) { in do_rw_unlock()