CCMallocCriticalSection Class Reference

#include <fixmem.h>

List of all members.

Public Member Functions

 CCMallocCriticalSection ()
 ~CCMallocCriticalSection ()

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 140 of file fixmem.h.


Constructor & Destructor Documentation

CCMallocCriticalSection::CCMallocCriticalSection  )  [inline]
 

Definition at line 143 of file fixmem.h.

00144     {
00145 #ifdef RALPH
00146         Temp = 0;
00147         ::EnterCriticalSection(&sm_Section);
00148 #endif
00149     }

CCMallocCriticalSection::~CCMallocCriticalSection  )  [inline]
 

Definition at line 151 of file fixmem.h.

00152     {
00153 #ifdef RALPH
00154         ::LeaveCriticalSection(&sm_Section);
00155 #endif
00156     }


Member Function Documentation

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

Definition at line 169 of file fixmem.h.

00170     {
00171 #ifdef RALPH
00172         if (sm_bInit)
00173         {
00174             ::DeleteCriticalSection(&sm_Section);
00175             sm_bInit = FALSE;
00176         }
00177 #endif
00178     }

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

Definition at line 158 of file fixmem.h.

00159     {
00160 #ifdef RALPH
00161         if (!sm_bInit)
00162         {
00163             ::InitializeCriticalSection(&sm_Section);
00164             sm_bInit = TRUE;
00165         }
00166 #endif
00167     }


Member Data Documentation

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

Definition at line 184 of file fixmem.h.

CRITICAL_SECTION CCMallocCriticalSection::sm_Section [static, private]
 

Definition at line 183 of file fixmem.h.

DWORD CCMallocCriticalSection::Temp [private]
 

Definition at line 182 of file fixmem.h.


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