Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Deloop.c49 (eloop.reader_count + 1) * sizeof (struct eloop_sock)); in eloop_register_read_sock()
53 tmp[eloop.reader_count].sock = sock; in eloop_register_read_sock()
54 tmp[eloop.reader_count].eloop_data = eloop_data; in eloop_register_read_sock()
55 tmp[eloop.reader_count].user_data = user_data; in eloop_register_read_sock()
56 tmp[eloop.reader_count].handler = handler; in eloop_register_read_sock()
57 eloop.reader_count++; in eloop_register_read_sock()
70 if (eloop.readers == NULL || eloop.reader_count == 0) in eloop_unregister_read_sock()
73 for (i = 0; i < eloop.reader_count; i++) { in eloop_unregister_read_sock()
77 if (i == eloop.reader_count) in eloop_unregister_read_sock()
79 if (i != eloop.reader_count - 1) { in eloop_unregister_read_sock()
[all …]
H A Deloop.h49 int max_sock, reader_count; member
/titanic_41/usr/src/lib/libnisdb/
H A Dnisdb_rw.c80 rw->writer_count = rw->reader_count = rw->reader_blocked = 0; in __nisdb_rwinit()
126 if (rw->destroyed == 0 && rw->reader_count == 0) { in __nisdb_rw_readlock_ok()
155 if (rw->destroyed == 0 && rw->reader_count == 0) { in __nisdb_rw_force_writelock()
196 if (rw->reader_count == 0 && rw->writer_count == 0) { in __nisdb_wlock_trylock()
207 if (rw->reader_count > 0) { in __nisdb_wlock_trylock()
216 if (rw->reader_count == in __nisdb_wlock_trylock()
226 if (rw->reader_count == rw->reader_blocked) in __nisdb_wlock_trylock()
242 (rw->writer_count == 0 && rw->reader_count == 0) || in __nisdb_wlock_trylock()
244 (rw->reader_count == 0) || in __nisdb_wlock_trylock()
245 (rw->reader_count == 1 && in __nisdb_wlock_trylock()
[all …]
H A Dnisdb_rw.h157 uint32_t reader_count; /* # of reader threads [0, N] */ member