summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-06-14 21:07:17 +0200
committerTycho <work.tycho+git@gmail.com>2014-06-14 21:07:17 +0200
commit41e5a64ff8f268f2cb0278e691f300e3a1790388 (patch)
treeb2e1619d6bf56804b17a49bdbe47257e05440952
parentDocumented cAllocationPool (diff)
downloadcuberite-41e5a64ff8f268f2cb0278e691f300e3a1790388.tar
cuberite-41e5a64ff8f268f2cb0278e691f300e3a1790388.tar.gz
cuberite-41e5a64ff8f268f2cb0278e691f300e3a1790388.tar.bz2
cuberite-41e5a64ff8f268f2cb0278e691f300e3a1790388.tar.lz
cuberite-41e5a64ff8f268f2cb0278e691f300e3a1790388.tar.xz
cuberite-41e5a64ff8f268f2cb0278e691f300e3a1790388.tar.zst
cuberite-41e5a64ff8f268f2cb0278e691f300e3a1790388.zip
Diffstat (limited to '')
-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;
};