[#BloombergLP-bdlcc-SingleProducerSingleConsumerBoundedQueue-waitUntilEmpty] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SingleProducerSingleConsumerBoundedQueue.adoc[SingleProducerSingleConsumerBoundedQueue]::waitUntilEmpty :relfileprefix: ../../../ :mrdocs: Block until all the elements in this queue are removed. 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 underlying mechanism returns an error. A blocked thread waiting for the queue to empty will return a non‐zero value if `disablePopFront` is invoked. == Synopsis Declared in `<bdlcc_singleproducersingleconsumerboundedqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int waitUntilEmpty() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#