Skip to content

Latest commit

 

History

History
74 lines (62 loc) · 2.4 KB

File metadata and controls

74 lines (62 loc) · 2.4 KB
title CAtlAutoThreadModule Class | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic reference
f1_keywords
CAtlAutoThreadModule
atlbase/ATL::CAtlAutoThreadModule
dev_langs
C++
helpviewer_keywords
CAtlAutoThreadModule class
ms.assetid 3be834aa-55ef-403e-94ae-41979691b15f
caps.latest.revision 19
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

CAtlAutoThreadModule Class

This class implements a thread-pooled, apartment-model COM server.

Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

Syntax

class CAtlAutoThreadModule : public CAtlAutoThreadModuleT<CAtlAutoThreadModule>

Remarks

CAtlAutoThreadModule derives from CAtlAutoThreadModuleT and implements a thread-pooled, apartment-model COM server. CAtlAutoThreadModule uses CComApartment to manage an apartment for each thread in the module.

You must use the DECLARE_CLASSFACTORY_AUTO_THREAD macro in your object's class definition to specify CComClassFactoryAutoThread as the class factory. You should then add a single instance of a class derived from CAtlAutoThreadModuleT such as CAtlAutoThreadModule. For example:

CAtlAutoThreadModule _AtlAutoModule; // name is immaterial.

Note

This class replaces the obsolete CComAutoThreadModule class.

Inheritance Hierarchy

IAtlAutoThreadModule

CAtlAutoThreadModuleT

CAtlAutoThreadModule

Requirements

Header: atlbase.h

See Also

CAtlAutoThreadModuleT Class
IAtlAutoThreadModule Class
Class Overview
Module Classes