typedef CComMultiThreadModelNoCS ThreadModelNoCS;
Remarks
When using CComMultiThreadModelNoCS, the typedef name ThreadModelNoCS simply references CComMultiThreadModelNoCS.
CComMultiThreadModel and CComSingleThreadModel also contain definitions for ThreadModelNoCS. The following table shows the relationship between the threading model class and the class referenced by ThreadModelNoCS:
Class defined in | Class referenced |
CcomMultiThreadModelNoCS | CComMultiThreadModelNoCS |
CcomMultiThreadModel | CComMultiThreadModelNoCS |
CcomSingleThreadModel | CComSingleThreadModel |
Example
See CComMultiThreadModel::AutoCriticalSection.
Note that the definition of ThreadModelNoCS in CComMultiThreadModelNoCS provides symmetry with CComMultiThreadModel and CComSingleThreadModel. For example, suppose the sample code in CComMultiThreadModel::AutoCriticalSection declared the following typedef:
typedef ThreadModel::ThreadModelNoCS _ThreadModel;
Regardless of the class specified for ThreadModel (such as CComMultiThreadModelNoCS), _ThreadModel resolves accordingly.
CComMultiThreadModelNoCS Overview | Class Members
See Also CComObjectThreadModel, CComGlobalsThreadModel