CriticalSection Class Reference

#include <GDrawIntf.h>

List of all members.

Public Member Functions

 CriticalSection ()
 ~CriticalSection ()

Static Public Member Functions

static void Init ()
static void DeInit ()

Private Attributes

DWORD Temp

Static Private Attributes

static CRITICAL_SECTION sm_Section
static BOOL sm_bInit = FALSE


Detailed Description

Definition at line 105 of file GDrawIntf.h.


Constructor & Destructor Documentation

CriticalSection::CriticalSection  )  [inline]
 

Definition at line 108 of file GDrawIntf.h.

00109     {
00110 #ifdef RALPH
00111         Temp = 0;
00112         ::EnterCriticalSection(&sm_Section);
00113 #endif
00114     }

CriticalSection::~CriticalSection  )  [inline]
 

Definition at line 116 of file GDrawIntf.h.

00117     {
00118 #ifdef RALPH
00119         ::LeaveCriticalSection(&sm_Section);
00120 #endif
00121     }


Member Function Documentation

static void CriticalSection::DeInit void   )  [inline, static]
 

Definition at line 134 of file GDrawIntf.h.

00135     {
00136 #ifdef RALPH
00137         if (sm_bInit)
00138         {
00139             ::DeleteCriticalSection(&sm_Section);
00140             sm_bInit = FALSE;
00141         }
00142 #endif
00143     }

static void CriticalSection::Init void   )  [inline, static]
 

Definition at line 123 of file GDrawIntf.h.

00124     {
00125 #ifdef RALPH
00126         if (!sm_bInit)
00127         {
00128             ::InitializeCriticalSection(&sm_Section);
00129             sm_bInit = TRUE;
00130         }
00131 #endif
00132     }


Member Data Documentation

BOOL CriticalSection::sm_bInit = FALSE [static, private]
 

Definition at line 149 of file GDrawIntf.h.

CRITICAL_SECTION CriticalSection::sm_Section [static, private]
 

Definition at line 148 of file GDrawIntf.h.

DWORD CriticalSection::Temp [private]
 

Definition at line 147 of file GDrawIntf.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:53:15 2007 for Camelot by  doxygen 1.4.4