Condividi tramite


CComAutoThreadModule Members

Methods

CreateInstance

Selects a thread and then creates an object in the associated apartment.

Init

Creates the module's threads.

Lock

Increments the lock count on the module and on the current thread.

Unlock

Decrements the lock count on the module and on the current thread.

Data Members

dwThreadID

Contains the identifier of the current thread.

m_Allocator

Manages thread selection.

m_nThreads

Contains the number of threads in the module.

m_pApartments

Manages the module's apartments.

Static Functions

GetDefaultThreads

Dynamically calculates the number of threads for the module based on the number of processors.

See Also

Concepts

CComAutoThreadModule Class

CComModule Members