Searched refs:reader_count (Results 1 – 3 of 3) sorted by relevance
40 int reader_count; member53 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 …]
30 int reader_count; member43 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 …]
49 size_t reader_count; member101 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 …]