1CK_RING_INIT(3) BSD Library Functions Manual CK_RING_INIT(3)
2
4 ck_ring_init — initialize bounded FIFO
5
7 Concurrency Kit (libck, -lck)
8
10 #include <ck_ring.h>
11
12 void
13 ck_ring_init(ck_ring_t *ring, unsigned int size);
14
16 The ck_ring_init() function initializes a bounded FIFO buffer pointed to
17 by ring for the storage of up to size number of pointers. The size argu‐
18 ment must be a power-of-two greater than or equal to 4.
19
21 This function has no return value.
22
24 ck_ring_dequeue_spmc(3), ck_ring_trydequeue_spmc(3),
25 ck_ring_enqueue_spmc(3), ck_ring_enqueue_spmc_size(3),
26 ck_ring_dequeue_spsc(3), ck_ring_enqueue_spsc(3),
27 ck_ring_enqueue_spsc_size(3), ck_ring_capacity(3), ck_ring_size(3)
28
29 Additional information available at http://concurrencykit.org/
30
31 April 20, 2013