Home
last modified time | relevance | path

Searched refs:RWLOCK_READ_INCR (Results 1 – 2 of 2) sorted by relevance

/openbsd/src/sys/kern/
Dkern_rwlock.c108 rw_do_exit_read(rwl, RWLOCK_READ_INCR); in rw_exit_read()
120 decr = owner - RWLOCK_READ_INCR; in rw_do_exit_read()
329 incr = owner + RWLOCK_READ_INCR; in rw_read_incr()
355 owner = rw_cas(&rwl->rwl_owner, 0, RWLOCK_READ_INCR); in rw_do_enter_read()
421 owner = atomic_cas_ulong(&rwl->rwl_owner, self, RWLOCK_READ_INCR); in rw_downgrade()
453 owner = atomic_cas_ulong(&rwl->rwl_owner, RWLOCK_READ_INCR, self); in rw_upgrade()
454 if (owner != RWLOCK_READ_INCR) { in rw_upgrade()
/openbsd/src/sys/sys/
Drwlock.h108 #define RWLOCK_READ_INCR (1UL << RWLOCK_READER_SHIFT) macro