IThreadPoolKnobs interface (comsvcs.h)

Used to control the behavior of thread pools.

Inheritance

The IThreadPoolKnobs interface inherits from the IUnknown interface. IThreadPoolKnobs also has these types of members:

Methods

The IThreadPoolKnobs interface has these methods.

 
IThreadPoolKnobs::GetCurrentQueuedRequests

Retrieves the number of asynchronous execution requests that are currently queued.
IThreadPoolKnobs::GetCurrentThreads

Retrieves the number of threads currently in the pool.
IThreadPoolKnobs::GetDeleteDelay

Retrieves the number of milliseconds a pooled thread can idle before being destroyed.
IThreadPoolKnobs::GetMaxQueuedRequests

Retrieves the maximum number of asynchronous execution requests that can be simultaneously queued.
IThreadPoolKnobs::GetMaxThreads

Retrieves the maximum number of threads that are allowed in the pool.
IThreadPoolKnobs::SetDeleteDelay

Sets the number of milliseconds a pooled thread can idle before being destroyed.
IThreadPoolKnobs::SetMaxQueuedRequests

Sets the maximum number of asynchronous execution requests that can be simultaneously queued.
IThreadPoolKnobs::SetMaxThreads

Sets the maximum number of threads to be allowed in the pool.
IThreadPoolKnobs::SetMinThreads

Sets the minimum number of threads to be maintained in the pool.
IThreadPoolKnobs::SetQueueDepth

Sets the threshold number of execution requests above which a new thread is added to the pool.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h