summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/AllocationPool.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/AllocationPool.h b/src/AllocationPool.h
index cac5689b9..b7d0bb506 100644
--- a/src/AllocationPool.h
+++ b/src/AllocationPool.h
@@ -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;
};