description | title | ms.date | helpviewer_keywords | ms.assetid | ||||
---|---|---|---|---|---|---|---|---|
Learn more about: Threading Models and Critical Sections Classes |
Threading Models and Critical Sections Classes (ATL) |
11/04/2016 |
|
759f05ef-6285-4be6-a2cc-78572dd75146 |
The following classes define a threading model and critical section:
-
CAtlAutoThreadModule Implements a thread-pooled, apartment-model COM server.
-
CAtlAutoThreadModuleT Provides methods for implementing a thread-pooled, apartment-model COM server.
-
CComMultiThreadModel Provides thread-safe methods for incrementing and decrementing a variable. Provides a critical section.
-
CComMultiThreadModelNoCS Provides thread-safe methods for incrementing and decrementing a variable. Does not provide a critical section.
-
CComSingleThreadModel Provides methods for incrementing and decrementing a variable. Does not provide a critical section.
-
CComObjectThreadModel Determines the appropriate threading-model class for a single object class.
-
CComGlobalsThreadModel Determines the appropriate threading-model class for an object that is globally available.
-
CComAutoCriticalSection Contains methods for obtaining and releasing a critical section. The critical section is automatically initialized.
-
CComCriticalSection Contains methods for obtaining and releasing a critical section. The critical section must be explicitly initialized.
-
CComFakeCriticalSection Mirrors the methods in
CComCriticalSection
without providing a critical section. The methods inCComFakeCriticalSection
do nothing. -
CRTThreadTraits Provides the creation function for a CRT thread. Use this class if the thread will use CRT functions.
-
Win32ThreadTraits Provides the creation function for a Windows thread. Use this class if the thread will not use CRT functions.