mirror of
https://github.com/thug1src/thug.git
synced 2025-01-22 05:43:47 +00:00
32 lines
534 B
C++
32 lines
534 B
C++
|
#include <sys/mem/CompactPool.h>
|
||
|
#include <sys/mem/Poolable.h>
|
||
|
|
||
|
namespace Mem
|
||
|
{
|
||
|
|
||
|
int gHeapPools = false; // set to true to use debug heap instead of pools
|
||
|
|
||
|
|
||
|
CCompactPool *CPoolable<PoolTest>::sp_pool[POOL_STACK_SIZE] = {NULL,NULL};
|
||
|
bool CPoolable<PoolTest>::s_internallyCreatedPool[POOL_STACK_SIZE] = {false,false};
|
||
|
int CPoolable<PoolTest>::s_currentPool=0;
|
||
|
|
||
|
|
||
|
PoolTest::PoolTest()
|
||
|
{
|
||
|
printf("created PoolTest object\n");
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
PoolTest::~PoolTest()
|
||
|
{
|
||
|
printf("~PoolTest()\n");
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|