ReactOS  0.4.12-dev-102-g4b7f1e0
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 44 of file atlcore.h.

Constructor & Destructor Documentation

◆ CComCriticalSection()

ATL::CComCriticalSection::CComCriticalSection ( )
inline

Definition at line 49 of file atlcore.h.

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

◆ ~CComCriticalSection()

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

Definition at line 54 of file atlcore.h.

55  {
56  }

Member Function Documentation

◆ Init()

HRESULT ATL::CComCriticalSection::Init ( )
inline

Definition at line 70 of file atlcore.h.

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

71  {
73  return S_OK;
74  }
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:697
CRITICAL_SECTION m_sec
Definition: atlcore.h:47
#define S_OK
Definition: intsafe.h:59

◆ Lock()

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

Definition at line 58 of file atlcore.h.

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

59  {
61  return S_OK;
62  }
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
CRITICAL_SECTION m_sec
Definition: atlcore.h:47
#define S_OK
Definition: intsafe.h:59

◆ Term()

HRESULT ATL::CComCriticalSection::Term ( )
inline

Definition at line 76 of file atlcore.h.

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

77  {
79  return S_OK;
80  }
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
CRITICAL_SECTION m_sec
Definition: atlcore.h:47
#define S_OK
Definition: intsafe.h:59

◆ Unlock()

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

Definition at line 64 of file atlcore.h.

65  {
67  return S_OK;
68  }
CRITICAL_SECTION m_sec
Definition: atlcore.h:47
#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 47 of file atlcore.h.


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