ReactOS 0.4.15-dev-8231-g29a56f3
ATL::CComAutoCriticalSection Class Reference

#include <atlcore.h>

Inheritance diagram for ATL::CComAutoCriticalSection:
Collaboration diagram for ATL::CComAutoCriticalSection:

Public Member Functions

 CComAutoCriticalSection ()
 
 ~CComAutoCriticalSection ()
 
- Public Member Functions inherited from ATL::CComCriticalSection
 CComCriticalSection ()
 
virtual ~CComCriticalSection ()
 
HRESULT Lock ()
 
HRESULT Unlock ()
 
HRESULT Init ()
 
HRESULT Term ()
 

Additional Inherited Members

- Public Attributes inherited from ATL::CComCriticalSection
CRITICAL_SECTION m_sec
 

Detailed Description

Definition at line 111 of file atlcore.h.

Constructor & Destructor Documentation

◆ CComAutoCriticalSection()

ATL::CComAutoCriticalSection::CComAutoCriticalSection ( )
inline

Definition at line 114 of file atlcore.h.

115 {
117
118 hResult = CComCriticalSection::Init();
119 ATLASSERT(SUCCEEDED(hResult));
120 }
#define ATLASSERT(x)
Definition: CComVariant.cpp:10
#define __MINGW_ATTRIB_UNUSED
Definition: _mingw.h:124
#define SUCCEEDED(hr)
Definition: intsafe.h:50

◆ ~CComAutoCriticalSection()

ATL::CComAutoCriticalSection::~CComAutoCriticalSection ( )
inline

Definition at line 121 of file atlcore.h.

122 {
123 CComCriticalSection::Term();
124 }

The documentation for this class was generated from the following file: