Searched refs:writer_count (Results 1 – 2 of 2) sorted by relevance
80 rw->writer_count = rw->reader_count = rw->reader_blocked = 0; in __nisdb_rwinit()196 if (rw->reader_count == 0 && rw->writer_count == 0) { in __nisdb_wlock_trylock()197 rw->writer_count = 1; in __nisdb_wlock_trylock()242 (rw->writer_count == 0 && rw->reader_count == 0) || in __nisdb_wlock_trylock()243 ((rw->writer_count == 0 || rw->writer.id == myself) && in __nisdb_wlock_trylock()255 if (rw->writer_count == 0 || rw->writer.id == myself) { in __nisdb_wlock_trylock()303 if (rw->writer_count == 0) in __nisdb_wlock_trylock()304 rw->writer_count = 1; in __nisdb_wlock_trylock()379 while (rw->writer_count > 0 && rw->writer.id != myself) { in __nisdb_rlock()440 if (rw->writer_count == 0 || in __nisdb_wulock()[all …]
155 uint32_t writer_count; /* Number of writer threads [0, 1] */ member