Added callback for stopping starvation mode
This commit is contained in:
parent
485752de82
commit
4124eac15d
@ -43,6 +43,10 @@ class AllocationPool {
|
|||||||
void Free(T* ptr)
|
void Free(T* ptr)
|
||||||
{
|
{
|
||||||
m_FreeList.push_front(ptr);
|
m_FreeList.push_front(ptr);
|
||||||
|
if (m_FreeList.size() == BufferSize)
|
||||||
|
{
|
||||||
|
StarvationCallbacks.OnStopUsingBuffer();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user