38 #define CF_QUEUE_PRIORITY_HIGH 1
39 #define CF_QUEUE_PRIORITY_MEDIUM 2
40 #define CF_QUEUE_PRIORITY_LOW 3
72 #define CF_Q_PRI_EMPTY(__q) (CF_Q_EMPTY(__q->low_q) && CF_Q_EMPTY(__q->medium_q) && CF_Q_EMPTY(__q->high_q))
int cf_queue_priority_pop(cf_queue_priority *q, void *buf, int mswait)
void cf_queue_priority_destroy(cf_queue_priority *q)
int cf_queue_priority_reduce_pop(cf_queue_priority *priority_q, void *buf, cf_queue_reduce_fn cb, void *udata)
int cf_queue_priority_sz(cf_queue_priority *q)
int(* cf_queue_reduce_fn)(void *buf, void *udata)
int cf_queue_priority_push(cf_queue_priority *q, void *ptr, int pri)
cf_queue_priority * cf_queue_priority_create(size_t elementsz, bool threadsafe)