Table of Contents
qdqueue_enqueue - append an element to a distributed queue
#include
<qthread/qdqueue.h>
int
qdqueue_enqueue (qdqueue_t *q, void *elem);
int
qdqueue_enqueue_there (qdqueue_t *q, void *elem, qthread_shepherd_id_t
there);
These two functions append elements to distributed queues.
The qdqueue_enqueue() function is equivalent to qdqueue_enqueue_there()
when the there location is the current shepherd (e.g. the result of qthread_shep(NULL)).
The return value will be 0 for success, or will indicate an
error.
Possible error codes are:
- QTHREAD_BADARGS
- This indicates
that one of the input arguments was null.
qlfqueue_enqueue(3)
, qdqueue_create(3)
,
qdqueue_enqueue(3)
, qdqueue_dequeue(3)
, qdqueue_empty(3)
Table of Contents