BEGIN_C_DECLS typedef int pastix_int_t
pastix_atomic_lock_t lock
pastix_queue_item_t * elttab
volatile pastix_int_t used
void pqueuePush2(pastix_queue_t *, pastix_int_t, double, double)
Insert an element into the sorted queue.
pastix_int_t pqueueRead(const pastix_queue_t *)
Read the first element of the queue.
struct pastix_queue_s pastix_queue_t
Queue structure.
static void pqueuePush1(pastix_queue_t *q, pastix_int_t elt, double key1)
Push an element with a single key.
void pqueueClear(pastix_queue_t *)
Reset the number of used element to 0.
void pqueueExit(pastix_queue_t *)
Free the structure associated to the queue.
pastix_int_t pqueuePop2(pastix_queue_t *, double *, double *)
Remove the first element of the queue and return its keys if needed.
void pqueuePrint(const pastix_queue_t *)
Print the queue.
pastix_int_t pqueueSize(const pastix_queue_t *)
Return the size of the queue.
static pastix_int_t pqueuePop1(pastix_queue_t *q, double *key1)
Pop the head of the queue and get the associated first key.
static pastix_int_t pqueuePop(pastix_queue_t *q)
Pop the head of the queue whithout returning the keys.
int pqueueInit(pastix_queue_t *, pastix_int_t)
Initialize the queue structure with an initial space to store the elements.
struct pastix_queue_item_s pastix_queue_item_t
Queue item structure.