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
CAtlAutoThreadModule
Requirements
Header: atlbase.h
See also
CAtlAutoThreadModuleT Class
IAtlAutoThreadModule Class
Class Overview
Module Classes
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho