thug/Code/Sys/Mem/Poolable.cpp

32 lines
534 B
C++
Raw Normal View History

2016-02-13 21:39:12 +00:00
#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");
}
}