![]() |
#include "cf_queue.h"
Go to the source code of this file.
Data Structures | |
struct | cf_queue_priority |
Macros | |
#define | CF_Q_PRI_EMPTY(__q) (CF_Q_EMPTY(__q->low_q) && CF_Q_EMPTY(__q->medium_q) && CF_Q_EMPTY(__q->high_q)) |
#define | CF_QUEUE_PRIORITY_HIGH 1 |
#define | CF_QUEUE_PRIORITY_LOW 3 |
#define | CF_QUEUE_PRIORITY_MEDIUM 2 |
Functions | |
cf_queue_priority * | cf_queue_priority_create (size_t elementsz, bool threadsafe) |
void | cf_queue_priority_destroy (cf_queue_priority *q) |
int | cf_queue_priority_pop (cf_queue_priority *q, void *buf, int mswait) |
int | cf_queue_priority_push (cf_queue_priority *q, void *ptr, int pri) |
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) |
#define CF_Q_PRI_EMPTY | ( | __q) | (CF_Q_EMPTY(__q->low_q) && CF_Q_EMPTY(__q->medium_q) && CF_Q_EMPTY(__q->high_q)) |
Definition at line 72 of file target/Linux-x86_64/include/citrusleaf/cf_queue_priority.h.
#define CF_QUEUE_PRIORITY_HIGH 1 |
Definition at line 38 of file target/Linux-x86_64/include/citrusleaf/cf_queue_priority.h.
#define CF_QUEUE_PRIORITY_LOW 3 |
Definition at line 40 of file target/Linux-x86_64/include/citrusleaf/cf_queue_priority.h.
#define CF_QUEUE_PRIORITY_MEDIUM 2 |
Definition at line 39 of file target/Linux-x86_64/include/citrusleaf/cf_queue_priority.h.
cf_queue_priority* cf_queue_priority_create | ( | size_t | elementsz, |
bool | threadsafe | ||
) |
void cf_queue_priority_destroy | ( | cf_queue_priority * | q) |
int cf_queue_priority_pop | ( | cf_queue_priority * | q, |
void * | buf, | ||
int | mswait | ||
) |
int cf_queue_priority_push | ( | cf_queue_priority * | q, |
void * | ptr, | ||
int | pri | ||
) |
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) |