Go to the documentation of this file.
25 #include <citrusleaf/cf_types.h>
35 #ifndef CF_QUEUE_ALLOCSZ
36 #define CF_QUEUE_ALLOCSZ 64
40 #define CF_QUEUE_ERR -1
41 #define CF_QUEUE_EMPTY -2
42 #define CF_QUEUE_NOMATCH -3 // used in cf_queue_priority_reduce_pop
47 #define CF_QUEUE_FOREVER -1
48 #define CF_QUEUE_NOWAIT 0
153 #define CF_Q_SZ(__q) (__q->write_offset - __q->read_offset)
155 #define CF_Q_EMPTY(__q) (__q->write_offset == __q->read_offset)
161 #define CF_Q_ELEM_PTR(__q, __i) (&__q->queue[ (__i % __q->allocsz) * __q->elementsz ] )