[#ThreadPool-Interrupt]
= xref:ThreadPool.adoc[ThreadPool]::Interrupt
:relfileprefix: ../
:mrdocs:

Stop accepting new tasks and begin asynchronous shutdown&period;

== Synopsis

Declared in `&lt;util&sol;threadpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f951f99b748)&rsqb;&rsqb;
void
Interrupt();
----

== Description

Wakes all worker threads so they can drain the queue and exit&period; Unlike Stop(), this function does not wait for threads to finish&period;

Note&colon; The next step in the pool lifecycle is calling Stop(), which releases any dangling resources and resets the pool state for shutdown or restart&period;


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