ReactOS 0.4.15-dev-8236-g99f0937
CSafeMutex Class Reference
Collaboration diagram for CSafeMutex:

Public Member Functions

 CSafeMutex ()
 
 ~CSafeMutex ()
 
HRESULT Enter (HANDLE hMutex)
 

Protected Attributes

HANDLE m_hMutex
 

Detailed Description

Definition at line 62 of file mrulist.cpp.

Constructor & Destructor Documentation

◆ CSafeMutex()

CSafeMutex::CSafeMutex ( )
inline

Definition at line 68 of file mrulist.cpp.

68 : m_hMutex(NULL)
69 {
70 }
HANDLE m_hMutex
Definition: mrulist.cpp:65
#define NULL
Definition: types.h:112

◆ ~CSafeMutex()

CSafeMutex::~CSafeMutex ( )
inline

Definition at line 71 of file mrulist.cpp.

72 {
73 if (m_hMutex)
74 {
76 m_hMutex = NULL;
77 }
78 }
BOOL WINAPI DECLSPEC_HOTPATCH ReleaseMutex(IN HANDLE hMutex)
Definition: synch.c:618

Member Function Documentation

◆ Enter()

HRESULT CSafeMutex::Enter ( HANDLE  hMutex)
inline

Definition at line 80 of file mrulist.cpp.

81 {
83 if (wait != WAIT_OBJECT_0)
84 return E_FAIL;
85
87 return S_OK;
88 }
#define E_FAIL
Definition: ddrawi.h:102
unsigned long DWORD
Definition: ntddk_ex.h:95
#define S_OK
Definition: intsafe.h:52
HANDLE hMutex
Definition: mutex.c:11
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
Definition: synch.c:82
#define WAIT_OBJECT_0
Definition: winbase.h:406

Member Data Documentation

◆ m_hMutex

HANDLE CSafeMutex::m_hMutex
protected

Definition at line 65 of file mrulist.cpp.

Referenced by Enter(), and ~CSafeMutex().


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