Go to the documentation of this file.
22 #ifndef CLUSTALO_QUEUE_H
23 #define CLUSTALO_QUEUE_H
36 #define QUEUE_INIT(prQueue, destroy_func) ListInit((prQueue), (destroy_func))
39 #define QUEUE_DESTROY(prQueue) ListDestroy((prQueue))
42 #define QUEUE_PUSH(prQueue, data) LIST_APPEND((prQueue), (data))
45 #define QUEUE_POP(prQueue, data) ListRemoveNext((prQueue), NULL, (data))
48 #define QUEUE_EMPTY(prQueue) (0==LIST_SIZE((prQueue)))
59 #define INT_QUEUE_INIT(prQueue) INT_LIST_INIT((prQueue))
62 #define INT_QUEUE_DESTROY(prQueue) INT_LIST_DESTROY((prQueue))
65 #define INT_QUEUE_PUSH(prQueue, data) INT_LIST_APPEND((prQueue), (data))
68 #define INT_QUEUE_POP(prQueue, data) IntListRemoveNext((prQueue), NULL, (data))
71 #define INT_QUEUE_EMPTY(prQueue) (0==INT_LIST_SIZE((prQueue)))
queue_t int_queue_t
Definition: queue.h:56
list_t queue_t
Definition: queue.h:33