CThreadPool Members

Methods

AddRef

Implementation of IUnknown::AddRef.

CThreadPool

The constructor for the thread pool.

~CThreadPool

The destructor for the thread pool.

GetNumThreads

Call this method to get the number of threads in the pool.

GetQueueHandle

Call this method to get the handle of the IO completion port used to queue work items.

GetSize

Call this method to get the number of threads in the pool.

GetTimeout

Call this method to get the maximum time in milliseconds that the thread pool will wait for a thread to shut down.

Initialize

Call this method to initialize the thread pool.

QueryInterface

Implementation of IUnknown::QueryInterface.

QueueRequest

Call this method to queue a work item to be handled by a thread in the pool.

Release

Implementation of IUnknown::Release.

SetSize

Call this method to set the number of threads in the pool.

SetTimeout

Call this method to set the maximum time in milliseconds that the thread pool will wait for a thread to shut down.

Shutdown

Call this method to shut down the thread pool.

See Also

Reference

CThreadPool Class

Other Resources

IThreadPoolConfig Members