Closes the specified thread pool.
void CloseThreadpool(
PTP_POOL ptpp
)
ptpp
Type: PTP_POOLÂ
[in, out] A TP_POOL structure that defines the thread pool. The CreateThreadpool function returns this structure.
The thread pool is closed immediately if there are no outstanding work, I/O, timer, or wait objects that are bound to the pool; otherwise, the thread pool is released asynchronously after the outstanding objects are freed.
Header: Declared in threadpoolapiset.h.
Library: Use kernelx.lib.