CloseThreadpool

Closes the specified thread pool.

Syntax

void CloseThreadpool(
         PTP_POOL ptpp
)  

Parameters

ptpp
Type: PTP_POOL 

[in, out] A TP_POOL structure that defines the thread pool. The CreateThreadpool function returns this structure.

Return value

None.

Remarks

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.

Requirements

Header: Declared in threadpoolapiset.h.

Library: Use kernelx.lib.