Home
last modified time | relevance | path

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

/external/valgrind/main/helgrind/tests/
Dannotate_rwlock.c39 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()
[all …]
/external/valgrind/main/drd/tests/
Dannotate_rwlock.c29 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()
[all …]