Documented starvation callbacks
This commit is contained in:
parent
2643a46c69
commit
41e5a64ff8
@ -11,8 +11,15 @@ public:
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~cStarvationCallbacks() {}
|
virtual ~cStarvationCallbacks() {}
|
||||||
|
|
||||||
|
/** Is called when the reserve buffer starts to be used **/
|
||||||
virtual void OnStartingUsingBuffer() = 0;
|
virtual void OnStartingUsingBuffer() = 0;
|
||||||
|
|
||||||
|
/** Is called once the reserve buffer has returned to normal size **/
|
||||||
virtual void OnStopUsingBuffer() = 0;
|
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;
|
virtual void OnBufferEmpty() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user