Lines Matching refs:writer_count
39 int writer_count; member
52 p->writer_count = 0; in rwlock_init()
61 assert(p->writer_count == 0); in rwlock_destroy()
71 if (p->writer_count == 0) in rwlock_rdlock()
83 assert(p->writer_count >= 0); in rwlock_rdlock()
84 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_rdlock()
106 p->writer_count++; in rwlock_wrlock()
108 assert(p->writer_count >= 0); in rwlock_wrlock()
109 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_wrlock()
127 p->writer_count--; in rwlock_unlock()
132 assert(p->writer_count >= 0); in rwlock_unlock()
133 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_unlock()