Home
last modified time | relevance | path

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

/external/ltp/utils/ffsb-6.0-rc2/
Drwlock.c28 rw->n_readers = 0; in init_rwlock()
44 while (rw->n_readers < 0) in rw_lock_read()
46 rw->n_readers++; in rw_lock_read()
59 while (rw->n_readers != 0) in rw_lock_write()
61 rw->n_readers = -1; in rw_lock_write()
73 rw->n_readers -= 1; in rw_unlock_read()
81 rw->n_readers = 0; in rw_unlock_write()
90 if (rw->n_readers >= 0) { in rw_trylock_read()
91 rw->n_readers++; in rw_trylock_read()
102 if (rw->n_readers == 0) { in rw_trylock_write()
[all …]
Drwlock.h29 int n_readers; member