1
0

Added callback for stopping starvation mode

This commit is contained in:
Tycho 2014-05-21 21:30:08 +01:00
parent 485752de82
commit 4124eac15d

View File

@ -43,6 +43,10 @@ class AllocationPool {
void Free(T* ptr)
{
m_FreeList.push_front(ptr);
if (m_FreeList.size() == BufferSize)
{
StarvationCallbacks.OnStopUsingBuffer();
}
}
private: