CComFakeCriticalSection mirrors the methods found in CComCriticalSection and CComAutoCriticalSection. However, CComFakeCriticalSection does not provide a critical section; therefore, its methods do nothing.
When using the single threaded model (CComSingleThreadModel), or the multi-threaded model without critical sections (CComMultiThreadModelNoCS), CComCriticalSection and CComAutoCriticalSection are both typedef'd as CComFakeCriticalSection.
class CComFakeCriticalSection
Header file: | Atlbase.h |
Platforms: | |
Versions: | Version 2.0 and later |
Complete documentation: | Visual C++ documentation |
CComFakeCriticalSection Methods, CComCriticalSection, CComSingleThreadModel, CComMultiThreadModelNoCS