Remove the element from the front of this queue and load that element into the specified value.
Synopsis
Declared in <bdlcc_boundedqueue.h>
int
popFront(TYPE* value);
Description
If the queue is empty, block until it is not empty. Return 0 on success, and a non‐zero value otherwise. Specifically, return e_SUCCESS on success, e_DISABLED if isPopFrontDisabled() and e_FAILED if an error occurs. On failure, value is not changed. Threads blocked due to the queue being empty will return e_DISABLED if disablePopFront is invoked.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
value |
receives the removed element |
Created with MrDocs