SetThreadpoolThreadMaximum

Sets the maximum number of threads that the specified thread pool can allocate to process callbacks.

Syntax

void SetThreadpoolThreadMaximum(
         PTP_POOL ptpp,
         DWORD cthrdMost
)  

Parameters

ptpp
Type: PTP_POOL 

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

cthrdMost
Type: DWORD 

[in] The maximum number of threads.

Return value

None.

Remarks

To specify the minimum number of threads available in the pool, call SetThreadpoolThreadMinimum.

Requirements

Header: Declared in threadpoolapiset.h.

Library: Use kernelx.lib.