QuickIO  0.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
queue.h
Go to the documentation of this file.
1 
12 #include "qev.h"
13 
17 typedef struct qev_queue qev_queue_t;
18 
25 qev_queue_t* qev_queue_new(guint32 size);
26 
37 
49 gboolean qev_queue_enqueue(qev_queue_t *q, void *thing);
50 
68 gboolean qev_queue_enqueue_unlocked(qev_queue_t *q, void *thing);
69 
80 
97 
107 guint32 qev_queue_size(qev_queue_t *q);
void * qev_queue_dequeue_unlocked(qev_queue_t *q)
Removes the next available thing from the queue in a non-thread-safe manner.
guint32 qev_queue_size(qev_queue_t *q)
The number of items in the queue.
void * qev_queue_dequeue(qev_queue_t *q)
Removes the next available thing from the queue.
struct qev_queue qev_queue_t
Yeah, I'm going to need you to go ahead and not touch this.
Definition: queue.h:17
void qev_queue_free(qev_queue_t *q)
Frees up the queue.
qev_queue_t * qev_queue_new(guint32 size)
Creates a new queue.
gboolean qev_queue_enqueue(qev_queue_t *q, void *thing)
Adds thing to the queue.
gboolean qev_queue_enqueue_unlocked(qev_queue_t *q, void *thing)
Adds thing to the queue in a non-thread-safe manner.
Provides all the qev_* functions that are needed for creating an event loop.