1
0

Documented starvation callbacks

This commit is contained in:
Tycho 2014-06-14 20:07:17 +01:00
parent 2643a46c69
commit 41e5a64ff8

View File

@ -11,8 +11,15 @@ public:
{
public:
virtual ~cStarvationCallbacks() {}
/** Is called when the reserve buffer starts to be used **/
virtual void OnStartingUsingBuffer() = 0;
/** Is called once the reserve buffer has returned to normal size **/
virtual void OnStopUsingBuffer() = 0;
/** Is called when the allocation pool is unable to allocate memory. Will be repeatedly
called if it does not free sufficient memory **/
virtual void OnBufferEmpty() = 0;
};