[#BloombergLP-bdlmt-MultipriorityThreadPool-stopThreads]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultipriorityThreadPool.adoc[MultipriorityThreadPool]::stopThreads
:relfileprefix: ../../../
:mrdocs:

Destroy all worker threads after active jobs complete&period;

== Synopsis

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

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

== Description

Destroy all worker threads of this multi&hyphen;priority thread pool after waiting for any active (i&period;e&period;, already&hyphen;running) jobs to complete&semi; no new jobs will be allowed to become active&period; This method has no impact on the enabled&sol;disabled or suspended&sol;resumed states of this thread pool&period; Note that calling this function when this thread pool is not in the started state has no effect&period; Also note that calling this method from one of the threads belonging to this thread pool will cause a deadlock&period;


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