ReactOS  0.4.14-dev-115-g4576127
ATL::CComCriticalSection Class Reference

#include <atlcore.h>

Inheritance diagram for ATL::CComCriticalSection:
Collaboration diagram for ATL::CComCriticalSection:

Public Member Functions

 CComCriticalSection ()
 
virtual ~CComCriticalSection ()
 
HRESULT Lock ()
 
HRESULT Unlock ()
 
HRESULT Init ()
 
HRESULT Term ()
 

Public Attributes

CRITICAL_SECTION m_sec
 

Detailed Description

Definition at line 48 of file atlcore.h.

Constructor & Destructor Documentation

◆ CComCriticalSection()

ATL::CComCriticalSection::CComCriticalSection ( )
inline

Definition at line 53 of file atlcore.h.

54  {
55  memset(&m_sec, 0, sizeof(CRITICAL_SECTION));
56  }
CRITICAL_SECTION m_sec
Definition: atlcore.h:51
#define memset(x, y, z)
Definition: compat.h:39

◆ ~CComCriticalSection()

virtual ATL::CComCriticalSection::~CComCriticalSection ( )
inlinevirtual

Definition at line 58 of file atlcore.h.

59  {
60  }

Member Function Documentation

◆ Init()

HRESULT ATL::CComCriticalSection::Init ( )
inline

Definition at line 74 of file atlcore.h.

75  {
77  return S_OK;
78  }
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:751
CRITICAL_SECTION m_sec
Definition: atlcore.h:51
#define S_OK
Definition: intsafe.h:59

Referenced by ATL::AtlWinModuleInit(), ATL::CAtlComModule::CAtlComModule(), ATL::CComAutoCriticalSection::CComAutoCriticalSection(), and ATL::CComSafeDeleteCriticalSection::Init().

◆ Lock()

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

Definition at line 62 of file atlcore.h.

63  {
65  return S_OK;
66  }
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
CRITICAL_SECTION m_sec
Definition: atlcore.h:51
#define S_OK
Definition: intsafe.h:59

Referenced by ATL::CComSafeDeleteCriticalSection::Lock().

◆ Term()

HRESULT ATL::CComCriticalSection::Term ( )
inline

Definition at line 80 of file atlcore.h.

81  {
83  return S_OK;
84  }
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
CRITICAL_SECTION m_sec
Definition: atlcore.h:51
#define S_OK
Definition: intsafe.h:59

Referenced by ATL::AtlWinModuleTerm(), ATL::CComSafeDeleteCriticalSection::Term(), ATL::CAtlComModule::Term(), and ATL::CComAutoCriticalSection::~CComAutoCriticalSection().

◆ Unlock()

HRESULT ATL::CComCriticalSection::Unlock ( void  )
inline

Definition at line 68 of file atlcore.h.

69  {
71  return S_OK;
72  }
CRITICAL_SECTION m_sec
Definition: atlcore.h:51
#define S_OK
Definition: intsafe.h:59
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)

Member Data Documentation

◆ m_sec

CRITICAL_SECTION ATL::CComCriticalSection::m_sec

Definition at line 51 of file atlcore.h.

Referenced by CComCriticalSection(), Init(), Lock(), Term(), and Unlock().


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