2014-05-03 06:02:51 -07:00
|
|
|
|
2014-05-27 12:44:56 +01:00
|
|
|
#include "Globals.h"
|
2014-05-21 19:58:48 +01:00
|
|
|
#include "ChunkData.h"
|
2014-05-03 06:02:51 -07:00
|
|
|
|
2014-04-27 12:25:03 -07:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
|
{
|
2014-05-23 17:18:11 +01:00
|
|
|
class cStarvationCallbacks
|
2014-06-14 18:43:36 +01:00
|
|
|
: public cAllocationPool<cChunkData::sChunkSection, 1600>::cStarvationCallbacks
|
2014-05-23 17:18:11 +01:00
|
|
|
{
|
|
|
|
|
virtual void OnStartingUsingBuffer() {}
|
|
|
|
|
virtual void OnStopUsingBuffer() {}
|
|
|
|
|
virtual void OnBufferEmpty() {}
|
|
|
|
|
};
|
2014-06-14 18:43:36 +01:00
|
|
|
cAllocationPool<cChunkData::sChunkSection, 1600> Pool(std::auto_ptr<cAllocationPool<cChunkData::sChunkSection, 1600>::cStarvationCallbacks>(new cStarvationCallbacks()));
|
2014-05-23 17:18:11 +01:00
|
|
|
cChunkData buffer(Pool);
|
2014-05-03 06:02:51 -07:00
|
|
|
return 0;
|
2014-04-27 12:25:03 -07:00
|
|
|
}
|