[#BloombergLP-bdlmt-ThreadPool-drain]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/ThreadPool.adoc[ThreadPool]::drain
:relfileprefix: ../../../
:mrdocs:

Disable queuing on this thread pool and wait until all pending jobs complete&period; Use `start` to re&hyphen;enable queuing&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;threadpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
drain();
----


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