Home
last modified time | relevance | path

Searched refs:reader_count (Results 1 – 3 of 3) sorted by relevance

/external/valgrind/helgrind/tests/
Dannotate_rwlock.c40 int reader_count; member
53 p->reader_count = 0; in rwlock_init()
62 assert(p->reader_count == 0); in rwlock_destroy()
81 p->reader_count++; in rwlock_rdlock()
82 assert(p->reader_count >= 0); in rwlock_rdlock()
84 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_rdlock()
96 if (p->reader_count == 0) in rwlock_wrlock()
107 assert(p->reader_count >= 0); in rwlock_wrlock()
109 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_wrlock()
119 if (p->reader_count > 0) in rwlock_unlock()
[all …]
/external/valgrind/drd/tests/
Dannotate_rwlock.c30 int reader_count; member
43 p->reader_count = 0; in rwlock_init()
52 assert(p->reader_count == 0); in rwlock_destroy()
71 p->reader_count++; in rwlock_rdlock()
72 assert(p->reader_count >= 0); in rwlock_rdlock()
74 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_rdlock()
85 if (p->reader_count == 0) in rwlock_wrlock()
96 assert(p->reader_count >= 0); in rwlock_wrlock()
98 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_wrlock()
107 if (p->reader_count > 0) in rwlock_unlock()
[all …]
/external/wpa_supplicant_8/src/utils/
Deloop_win.c49 size_t reader_count; member
101 if (eloop.num_handles > eloop.reader_count + eloop.event_count + 8) in eloop_prepare_handles()
133 tmp = os_realloc_array(eloop.readers, eloop.reader_count + 1, in eloop_register_read_sock()
141 tmp[eloop.reader_count].sock = sock; in eloop_register_read_sock()
142 tmp[eloop.reader_count].eloop_data = eloop_data; in eloop_register_read_sock()
143 tmp[eloop.reader_count].user_data = user_data; in eloop_register_read_sock()
144 tmp[eloop.reader_count].handler = handler; in eloop_register_read_sock()
145 tmp[eloop.reader_count].event = event; in eloop_register_read_sock()
146 eloop.reader_count++; in eloop_register_read_sock()
160 if (eloop.readers == NULL || eloop.reader_count == 0) in eloop_unregister_read_sock()
[all …]