Inserts an element at the front of an atomic queue.
cma_lib_queue_requeue (queue, element)
Argument Data Type Accessqueue opaque cma_lib_t_queue read element opaque cma_t_address read
void cma_lib_queue_requeue ( cma_lib_t_queue *queue, cma_lib_t_address element);
Call cma_lib_queue_try_requeue to insert an element at the front of a queue and return a status code (instead of blocking) if the queue is full.
This routine allows you to replace an element that was erroneously removed from a queue. For example, a queue might hold information of various types. In that case a thread can remove the oldest (first) element of the queue, check its type, and requeue the element if it is not the desired type (rather than enqueuing it, which would place the element at the end of the queue).
cma_e_existence cma_e_use_error