Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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