1CK_RING_CAPACITY(3)      BSD Library Functions Manual      CK_RING_CAPACITY(3)
2

NAME

4     ck_ring_capacity — returns number of pointer slots in bounded FIFO
5

LIBRARY

7     Concurrency Kit (libck, -lck)
8

SYNOPSIS

10     #include <ck_ring.h>
11
12     unsigned int
13     ck_ring_capacity(ck_ring_t *ring);
14

DESCRIPTION

16     The ck_ring_capacity(3) function returns the number of pointers that can
17     be held in the buffer pointed to by ring.  Note that a ring can only hold
18     ck_ring_capacity(3) minus one entries at a time.
19

SEE ALSO

21     ck_ring_init(3), ck_ring_enqueue_spmc(3), ck_ring_dequeue_spmc(3),
22     ck_ring_trydequeue_spmc(3), ck_ring_enqueue_spmc_size(3),
23     ck_ring_dequeue_spsc(3), ck_ring_enqueue_spsc(3),
24     ck_ring_enqueue_spsc_size(3), ck_ring_size(3)
25
26     Additional information available at http://concurrencykit.org/
27
28                                April 20, 2013
Impressum