Searched refs:writer_count (Results 1 – 2 of 2) sorted by relevance
39 int writer_count; member52 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()[all …]
29 int writer_count; member42 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()[all …]