poser
A C framework for POsix SERvices
|
A simple queue of objects. More...
#include <poser/core/queue.h>
Public Member Functions | |
PSC_Queue * | PSC_Queue_create (void) |
PSC_Queue default constructor. | |
void | PSC_Queue_enqueue (PSC_Queue *self, void *obj, void(*deleter)(void *)) |
Enqueue an object. | |
void * | PSC_Queue_dequeue (PSC_Queue *self) |
Dequeue the oldest object. | |
void | PSC_Queue_destroy (PSC_Queue *self) |
PSC_Queue destructor. | |
A simple queue of objects.
PSC_Queue * PSC_Queue_create | ( | void | ) |
void * PSC_Queue_dequeue | ( | PSC_Queue * | self | ) |
void PSC_Queue_destroy | ( | PSC_Queue * | self | ) |
void PSC_Queue_enqueue | ( | PSC_Queue * | self, |
void * | obj, | ||
void(*)(void *) | deleter | ||
) |
Enqueue an object.
self | the PSC_Queue |
obj | the object to enqueue |
deleter | optional function to destroy the object |