26 RCSIDH(queue_h,
"$Id: 12e9e6d7e79e169f6e9360995ff9f5a523ec71be $")
29 #include <freeradius-devel/io/atomic_queue.h>
30 #include <freeradius-devel/util/talloc.h>
Structure to hold the atomic queue.
static fr_atomic_queue_t * aq
int size
size of the queue
int fr_queue_size(fr_queue_t *fq)
get the size of a queue
bool fr_queue_pop(fr_queue_t *fq, void **p_data)
Pop a pointer from the queue.
fr_queue_t * fr_queue_resize(fr_queue_t *fq, int size)
Resize a queue, and copy the entries over.
fr_queue_t * fr_queue_create(TALLOC_CTX *ctx, int size)
Create a non-thread-safe queue.
void fr_queue_debug(fr_queue_t *fq, FILE *fp)
Dump a queue.
bool fr_queue_push(fr_queue_t *fq, void *data)
Push a pointer into the queue.
int fr_queue_num_elements(fr_queue_t *fq)
get the number of elements in a queue.
int fr_queue_localize_atomic(fr_queue_t *fq, fr_atomic_queue_t *aq)
Pull all entries from an atomic queue into our local queue.