All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Functions
target/Linux-x86_64/include/citrusleaf/cf_queue_priority.h File Reference
#include "cf_queue.h"
+ Include dependency graph for target/Linux-x86_64/include/citrusleaf/cf_queue_priority.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)
 

Macro Definition Documentation

#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

Function Documentation

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)