IThreadPoolConfig::SetSize
Call this method to set the number of threads in the pool.
STDMETHOD(SetSize)(
int nNumThreads
);
Parameters
nNumThreads
The requested number of threads in the pool.If nNumThreads is negative, its absolute value will be multiplied by the number of processors in the machine to get the total number of threads.
If nNumThreads is zero, ATLS_DEFAULT_THREADSPERPROC will be multiplied by the number of processors in the machine to get the total number of threads.
Return Value
Returns S_OK on success, or an error HRESULT on failure.
Example
See IThreadPoolConfig::GetSize.
Requirements
Header: atlutil.h