IHostThreadPoolManager Interface

 

Provides methods that enable the common language runtime (CLR) to configure the thread pool and to queue work items to the thread pool.

MethodDescription
GetAvailableThreads MethodGets the number of threads in the thread pool that are not currently processing work items.
GetMaxThreads MethodGets the maximum number of threads that the host maintains concurrently in the thread pool.
GetMinThreads MethodGets the minimum number of idle threads that the host maintains in anticipation of requests.
QueueUserWorkItem MethodQueues a function for execution, and provides an object containing data to be used by the function.
SetMaxThreads MethodSets the maximum number of threads that the host can maintain in the thread pool.
SetMinThreads MethodSets the minimum number of idle threads that the host must maintain in anticipation of requests.

The host is not required to configure the thread pool by using the values specified in calls to the SetMaxThreads and SetMinThreads methods. In this case, the host should return an HRESULT value of E_NOTIMPL from these methods.

Platforms: See System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 2.0

System.Threading
ThreadPool
Hosting Interfaces

Show: