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

CComFakeCriticalSection Class

This class provides the same methods as CComCriticalSection but does not provide a critical section.

class CComFakeCriticalSection

Name

Description

CComFakeCriticalSection::Init

Does nothing since there is no critical section.

CComFakeCriticalSection::Lock

Does nothing since there is no critical section.

CComFakeCriticalSection::Term

Does nothing since there is no critical section.

CComFakeCriticalSection::Unlock

Does nothing since there is no critical section.

CComFakeCriticalSection mirrors the methods found in CComCriticalSection. However, CComFakeCriticalSection does not provide a critical section; therefore, its methods do nothing.

Typically, you use CComFakeCriticalSection through a typedef name, either AutoCriticalSection or CriticalSection. When using CComSingleThreadModel or CComMultiThreadModelNoCS, both of these typedef names reference CComFakeCriticalSection. When using CComMultiThreadModel, they reference CComAutoCriticalSection and CComCriticalSection, respectively.

Header: atlcore.h

Show:
© 2015 Microsoft