summaryrefslogblamecommitdiffstats
path: root/tests/ChunkData/creatable.cpp
blob: 78b1a82d1b4ae9c29c7c8acbb915722f8c9789ff (plain) (tree)
1
2
3
4
5
6

                        
                      
 

                               








                                                                                                                                                                               
                 
 

#include "TestGlobals.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;
}