Skip to content

Latest commit

 

History

History
89 lines (56 loc) · 2.69 KB

File metadata and controls

89 lines (56 loc) · 2.69 KB
title CComFakeCriticalSection Class
ms.date 11/04/2016
f1_keywords
CComFakeCriticalSection
ATLCORE/ATL::CComFakeCriticalSection
ATLCORE/ATL::CComFakeCriticalSection::Init
ATLCORE/ATL::CComFakeCriticalSection::Lock
ATLCORE/ATL::CComFakeCriticalSection::Term
ATLCORE/ATL::CComFakeCriticalSection::Unlock
helpviewer_keywords
CComFakeCriticalSection class
ms.assetid a4811b97-96bb-493b-ab9f-62822aeddb10

CComFakeCriticalSection Class

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

Syntax

class CComFakeCriticalSection

Members

Public Methods

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.

Remarks

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.

Requirements

Header: atlcore.h

CComFakeCriticalSection::Init

Does nothing since there is no critical section.

HRESULT Init() throw();

Return Value

Returns S_OK.

CComFakeCriticalSection::Lock

Does nothing since there is no critical section.

HRESULT Lock() throw();

Return Value

Returns S_OK.

CComFakeCriticalSection::Term

Does nothing since there is no critical section.

HRESULT Term() throw();

Return Value

Returns S_OK.

CComFakeCriticalSection::Unlock

Does nothing since there is no critical section.

HRESULT Unlock() throw();

Return Value

Returns S_OK.

See also

Class Overview