All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
apr_queue.h File Reference

Thread Safe FIFO bounded queue. More...

#include "apu.h"
#include "apr_errno.h"
#include "apr_pools.h"
#include "apr_time.h"
Include dependency graph for apr_queue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


typedef struct apr_queue_t apr_queue_t


apr_status_t apr_queue_create (apr_queue_t **queue, unsigned int queue_capacity, apr_pool_t *a)
apr_status_t apr_queue_push (apr_queue_t *queue, void *data)
apr_status_t apr_queue_pop (apr_queue_t *queue, void **data)
apr_status_t apr_queue_trypush (apr_queue_t *queue, void *data)
apr_status_t apr_queue_trypop (apr_queue_t *queue, void **data)
apr_status_t apr_queue_timedpush (apr_queue_t *queue, void *data, apr_interval_time_t timeout)
apr_status_t apr_queue_timedpop (apr_queue_t *queue, void **data, apr_interval_time_t timeout)
unsigned int apr_queue_size (apr_queue_t *queue)
apr_status_t apr_queue_interrupt_all (apr_queue_t *queue)
apr_status_t apr_queue_term (apr_queue_t *queue)

Detailed Description

Thread Safe FIFO bounded queue.

Since most implementations of the queue are backed by a condition variable implementation, it isn't available on systems without threads. Although condition variables are sometimes available without threads.