convert line ends
[canaan.git] / prj / tech / libsrc / lgalloc / memcore.h
blobd52e72c34d19a2561945a435cffea5e0695818dc
1 ///////////////////////////////////////////////////////////////////////////////
2 // $Source: x:/prj/tech/libsrc/lgalloc/RCS/memcore.h $
3 // $Author: TOML $
4 // $Date: 1998/06/10 13:58:16 $
5 // $Revision: 1.5 $
6 //
8 #ifndef __MEMCORE_H
9 #define __MEMCORE_H
11 #include <allocapi.h>
12 #include <fastmutx.h>
14 #ifndef SHIP
15 EXTERN IDebugMalloc * g_pMalloc;
16 #else
17 EXTERN IMalloc * g_pMalloc;
18 #endif
20 class cHeapDebug;
21 extern cHeapDebug * g_pHeapDebug;
22 extern BOOL g_bAllocDumpLeaks;
24 class cMemAllocTimer;
25 extern cMemAllocTimer * g_pMemAllocTimer;
27 #if OS_MUTEX
28 extern void AllocThreadLock(void);
29 extern void AllocThreadUnlock(void);
30 #else
32 extern volatile cFastMutex g_AllocMutex;
34 #define AllocThreadLock() g_AllocMutex.Lock()
35 #define AllocThreadUnlock() g_AllocMutex.Unlock()
37 #endif
39 #endif /* !__MEMCORE_H */