Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CAtlAutoThreadModuleT Class

This class provides methods for implementing a thread-pooled, apartment-model COM server.

template <
   class T,
   class ThreadAllocator = CComSimpleThreadAllocator,
   DWORD dwWait = INFINITE 
>
class ATL_NO_VTABLE CAtlAutoThreadModuleT :
   public IAtlAutoThreadModule

Parameters

T
The class which will implement the COM server.
ThreadAllocator
The class managing thread selection. The default value is CComSimpleThreadAllocator.
dwWait
Specifies the time-out interval, in milliseconds. The default is INFINITE, which means the method's time-out interval never elapses.

Remarks

The class CAtlAutoThreadModule derives from CAtlAutoThreadModuleT in order to implement a thread-pooled, apartment-model COM server. It replaces the obsolete class CComAutoThreadModule.

Note   This class should not be used in a DLL, as the default dwWait value of INFINITE will cause a deadlock when the DLL is unloaded.

Requirements

Header: atlbase.h

See Also

Class Members | IAtlAutoThreadModule | ATL Class Overview | IAtlAutoThreadModule | ATL Module Classes

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.