XLL+ Class Library (7.0)

CRtdAsyncManager::SetMaxThreads

Sets the maximum number of background threads that will be used to run asynchronous functions.

void SetMaxThreads(
   size_t maxThreads
);

Parameters

maxThreads

The maximum number of threads that will be used by for asynchronous functions.

If the value is 0 then an exception of type CXlOutOfRangeException will be thrown.

Remarks

If Start has already been called, then SetMaxThreads will fail and an exception of type CXlRuntimeException will be thrown.

Requirements

Header: rtdlink.h

See Also

CRtdAsyncManager Class | CRtdAsyncManager Methods