qdqueue_enqueue - Man Page
append an element to a distributed queue
Synopsis
#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);
Description
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)).
Return Value
The return value will be 0 for success, or will indicate an error.
Error Codes
Possible error codes are:
- QTHREAD_BADARGS
This indicates that one of the input arguments was null.
See Also
qlfqueue_enqueue(3), qdqueue_create(3), qdqueue_enqueue(3), qdqueue_dequeue(3), qdqueue_empty(3)
Referenced By
qdqueue_create(3), qdqueue_dequeue(3), qdqueue_destroy(3), qdqueue_empty(3), qdqueue_enqueue(3), qlfqueue_enqueue(3).