CK_RING_INIT(3) Library Functions Manual CK_RING_INIT(3)

ck_ring_initinitialize bounded FIFO

Concurrency Kit (libck, -lck)

#include <ck_ring.h>

ck_ring_init(ck_ring_t *ring, unsigned int size);

The () function initializes a bounded FIFO buffer pointed to by ring for the storage of up to size number of pointers. The size argument must be a power-of-two greater than or equal to 4.

This function has no return value.

ck_ring_dequeue_spmc(3), ck_ring_trydequeue_spmc(3), ck_ring_enqueue_spmc(3), ck_ring_enqueue_spmc_size(3), ck_ring_dequeue_spsc(3), ck_ring_enqueue_spsc(3), ck_ring_enqueue_spsc_size(3), ck_ring_capacity(3), ck_ring_size(3)

Additional information available at

April 20, 2013