Specifies the number of threads to create and make available to execute tasks.
HRESULT retVal = object.SetThreadPoolSize(ulNumThreads);
- ulNumThreads [in]
Type: unsigned long
Number of threads to make available in the thread pool.
This method is used to define how many threads can be used to process tasks. If set to zero, the thread scheduling the work executes it.