Lines Matching refs:writer_count
29 int writer_count; member
42 p->writer_count = 0; in rwlock_init()
51 assert(p->writer_count == 0); in rwlock_destroy()
61 if (p->writer_count == 0) in rwlock_rdlock()
73 assert(p->writer_count >= 0); in rwlock_rdlock()
74 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_rdlock()
95 p->writer_count++; in rwlock_wrlock()
97 assert(p->writer_count >= 0); in rwlock_wrlock()
98 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_wrlock()
114 p->writer_count--; in rwlock_unlock()
118 assert(p->writer_count >= 0); in rwlock_unlock()
119 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_unlock()