ReactOS 0.4.15-dev-7958-gcd0bb1a
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 }
#define S_OK
Definition: intsafe.h:52
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:751

Referenced by ATL::AtlWinModuleInit(), and ATL::CAtlComModule::CAtlComModule().

◆ Lock()

HRESULT ATL::CComCriticalSection::Lock ( )
inline

Definition at line 62 of file atlcore.h.

63 {
65 return S_OK;
66 }
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)

◆ 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)

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

◆ Unlock()

HRESULT ATL::CComCriticalSection::Unlock ( )
inline

Definition at line 68 of file atlcore.h.

69 {
71 return S_OK;
72 }
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: