Thread Pooling
The following classes support thread pooling:
CComAutoThreadModule
Implements an EXE module, with support for multiple thread-pooled apartments.
CComApartment
Manages an apartment in a thread-pooled EXE module.
CComSimpleThreadAllocator
Manages thread selection for an EXE module.
ATL Class Overview