SetThreadpoolThreadMinimum

Sets the minimum number of threads that the specified thread pool must make available to process callbacks.

Syntax

BOOL SetThreadpoolThreadMinimum(
         PTP_POOL ptpp,
         DWORD cthrdMic
)  

Parameters

ptpp
Type: PTP_POOL 

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

cthrdMic
Type: DWORD 

[in] The minimum number of threads.

Return value

Type: BOOL 

If the function succeeds, it returns TRUE.If the function fails, it returns FALSE. To retrieve extended error information, call GetLastError.

Remarks

To specify the maximum number of threads that the pool may allocate, call SetThreadpoolThreadMaximum.

Requirements

Header: Declared in threadpoolapiset.h.

Library: Use kernelx.lib.