poser
A C framework for POsix SERvices
Loading...
Searching...
No Matches
queue.h
Go to the documentation of this file.
1#ifndef POSER_CORE_QUEUE_H
2#define POSER_CORE_QUEUE_H
3
4#include <poser/decl.h>
5
13C_CLASS_DECL(PSC_Queue);
14
20DECLEXPORT PSC_Queue *
22 ATTR_RETNONNULL;
23
30DECLEXPORT void
31PSC_Queue_enqueue(PSC_Queue *self, void *obj, void (*deleter)(void *))
32 CMETHOD ATTR_NONNULL((2));
33
40DECLEXPORT void *
42 CMETHOD;
43
49DECLEXPORT void
51
52#endif
A simple queue of objects.
void PSC_Queue_destroy(PSC_Queue *self)
PSC_Queue destructor.
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.