ReactOS  0.4.12-dev-36-g472787f
ATL::CComSafeDeleteCriticalSection Class Reference

#include <atlcore.h>

Inheritance diagram for ATL::CComSafeDeleteCriticalSection:
Collaboration diagram for ATL::CComSafeDeleteCriticalSection:

Public Member Functions

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

Private Attributes

bool m_bInitialized
 

Additional Inherited Members

- Public Attributes inherited from ATL::CComCriticalSection
CRITICAL_SECTION m_sec
 

Detailed Description

Definition at line 123 of file atlcore.h.

Constructor & Destructor Documentation

◆ CComSafeDeleteCriticalSection()

ATL::CComSafeDeleteCriticalSection::CComSafeDeleteCriticalSection ( )
inline

Definition at line 128 of file atlcore.h.

129  {
130  m_bInitialized = false;
131  }

◆ ~CComSafeDeleteCriticalSection()

ATL::CComSafeDeleteCriticalSection::~CComSafeDeleteCriticalSection ( )
inline

Definition at line 133 of file atlcore.h.

134  {
135  Term();
136  }

Member Function Documentation

◆ Init()

HRESULT ATL::CComSafeDeleteCriticalSection::Init ( )
inline

Definition at line 144 of file atlcore.h.

145  {
146  HRESULT hResult;
147 
149  hResult = CComCriticalSection::Init();
150  if (SUCCEEDED(hResult))
151  m_bInitialized = true;
152  return hResult;
153  }
#define ATLASSERT(expr)
Definition: atlcore.h:38
LONG HRESULT
Definition: typedefs.h:77
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ Lock()

HRESULT ATL::CComSafeDeleteCriticalSection::Lock ( void  )
inline

Definition at line 138 of file atlcore.h.

139  {
141  return CComCriticalSection::Lock();
142  }
#define ATLASSERT(expr)
Definition: atlcore.h:38

◆ Term()

HRESULT ATL::CComSafeDeleteCriticalSection::Term ( )
inline

Definition at line 155 of file atlcore.h.

156  {
157  if (!m_bInitialized)
158  return S_OK;
159  m_bInitialized = false;
160  return CComCriticalSection::Term();
161  }
#define S_OK
Definition: intsafe.h:59

Member Data Documentation

◆ m_bInitialized

bool ATL::CComSafeDeleteCriticalSection::m_bInitialized
private

Definition at line 126 of file atlcore.h.


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