Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CComMultiThreadModelNoCS Class
Collapse the table of content
Expand the table of content

CComMultiThreadModelNoCS Class

CComMultiThreadModelNoCS provides thread-safe methods for incrementing and decrementing the value of a variable, without critical section locking or unlocking functionality.

class CComMultiThreadModelNoCS

Name

Description

CComMultiThreadModelNoCS::AutoCriticalSection

References class CComFakeCriticalSection.

CComMultiThreadModelNoCS::CriticalSection

References class CComFakeCriticalSection.

CComMultiThreadModelNoCS::ThreadModelNoCS

References class CComMultiThreadModelNoCS.

Name

Description

CComMultiThreadModelNoCS::Decrement

(Static) Decrements the value of the specified variable in a thread-safe manner.

CComMultiThreadModelNoCS::Increment

(Static) Increments the value of the specified variable in a thread-safe manner.

CComMultiThreadModelNoCS is similar to CComMultiThreadModel in that it provides thread-safe methods for incrementing and decrementing a variable. However, when you reference a critical section class through CComMultiThreadModelNoCS, methods such as Lock and Unlock will do nothing.

Typically, you use CComMultiThreadModelNoCS through the ThreadModelNoCS typedef name. This typedef is defined in CComMultiThreadModelNoCS, CComMultiThreadModel, and CComSingleThreadModel.

Note Note

The global typedef names CComObjectThreadModel and CComGlobalsThreadModel do not reference CComMultiThreadModelNoCS.

In addition to ThreadModelNoCS, CComMultiThreadModelNoCS defines AutoCriticalSection and CriticalSection. These latter two typedef names reference CComFakeCriticalSection, which provides empty methods associated with obtaining and releasing a critical section.

Header: atlbase.h

Show:
© 2015 Microsoft