Lines Matching refs:n_consumers
47 while (rb->n_consumers) { in ringbuffer_fini()
66 n = rb->n_consumers++; in ringbuffer_consumer_register()
72 rb->consumers = reallocarray(rb->consumers, rb->n_consumers, in ringbuffer_consumer_register()
85 for (i = 0; i < rb->n_consumers; i++) { in ringbuffer_consumer_unregister()
91 assert(i < rb->n_consumers); in ringbuffer_consumer_unregister()
93 rb->n_consumers--; in ringbuffer_consumer_unregister()
101 sizeof(*rb->consumers) * (rb->n_consumers - i)); in ringbuffer_consumer_unregister()
103 if (rb->n_consumers == 0) { in ringbuffer_consumer_unregister()
108 rb->consumers, rb->n_consumers, in ringbuffer_consumer_unregister()
169 for (i = 0; i < rb->n_consumers; i++) { in ringbuffer_queue()
194 for (i = 0; i < rb->n_consumers; i++) { in ringbuffer_queue()