IThreadPoolConfig::SetSize
Call this method to set the number of threads in the pool.
STDMETHOD(SetSize)(
int nNumThreads
);
Параметры
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.
Возвращаемое значение
Returns S_OK on success, or an error HRESULT on failure.
Пример
See IThreadPoolConfig::GetSize.
Требования
Header: atlutil.h