ck_ring_init(3)
initialize bounded FIFO
LIBRARY
Concurrency Kit (libck, -lck)
SYNOPSIS
In ck_ring.h
Ft void
Fn ck_ring_init ck_ring_t *ring unsigned int size
DESCRIPTION
The
Fn ck_ring_init
function initializes a bounded FIFO buffer pointed to by
Fa ring
for the storage of up to
Fa size
number of pointers.
The
Fa size
argument must be a power-of-two greater than or equal to 4.
RETURN VALUES
This function has no return value.