[#BloombergLP-bdlcc-SingleConsumerQueue-waitUntilEmpty]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SingleConsumerQueue.adoc[SingleConsumerQueue]::waitUntilEmpty
:relfileprefix: ../../../
:mrdocs:

Block until all the elements in this queue are removed&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; Specifically, return `e&lowbar;DISABLED` if `!isEmpty() &amp;&amp; isPopFrontDisabled()`&period; A blocked thread waiting for the queue to empty will return `e&lowbar;DISABLED` if `disablePopFront` is invoked&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;singleconsumerqueue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
waitUntilEmpty() const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
