Partager via


SetThreadPoolSize method

Specifies the number of threads to create and make available to execute tasks.

Syntax

HRESULT retVal = object.SetThreadPoolSize(ulNumThreads);

Parameters

  • ulNumThreads [in]
    Type: unsigned long

    Number of threads to make available in the thread pool.

Remarks

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.

See also

IDXTaskManager::GetThreadPoolSize