summaryrefslogtreecommitdiffstats
path: root/tests/ChunkData/creatable.cpp
blob: 2bb61b7ce46b2805be8e4b4f55c7852bd3620023 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#include "Globals.h"
#include "ChunkData.h"

int main(int argc, char** argv)
{
	class cStarvationCallbacks
		: public cAllocationPool<cChunkData::sChunkSection, 1600>::cStarvationCallbacks
	{
		virtual void OnStartingUsingBuffer() {}
		virtual void OnStopUsingBuffer() {}
		virtual void OnBufferEmpty() {}
	};
	cAllocationPool<cChunkData::sChunkSection, 1600> Pool(std::auto_ptr<cAllocationPool<cChunkData::sChunkSection, 1600>::cStarvationCallbacks>(new cStarvationCallbacks()));
	cChunkData buffer(Pool);
	return 0;
}