Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | List of all members
cAllocationPool< T >::cStarvationCallbacks Class Referenceabstract

#include <AllocationPool.h>

Inheritance diagram for cAllocationPool< T >::cStarvationCallbacks:
Inheritance graph
[legend]

Public Member Functions

virtual void OnEndUsingReserve ()=0
 Is called once the reserve buffer has returned to normal size. More...
 
virtual void OnOutOfReserve ()=0
 Is called when the allocation pool is unable to allocate memory. More...
 
virtual void OnStartUsingReserve ()=0
 Is called when the reserve buffer starts to be used. More...
 
virtual ~cStarvationCallbacks ()
 

Detailed Description

template<class T>
class cAllocationPool< T >::cStarvationCallbacks

Definition at line 12 of file AllocationPool.h.

Constructor & Destructor Documentation

template<class T>
virtual cAllocationPool< T >::cStarvationCallbacks::~cStarvationCallbacks ( )
inlinevirtual

Definition at line 15 of file AllocationPool.h.

Member Function Documentation

template<class T>
virtual void cAllocationPool< T >::cStarvationCallbacks::OnEndUsingReserve ( )
pure virtual

Is called once the reserve buffer has returned to normal size.

Implemented in cChunkMap::cStarvationCallbacks, and cChunkDataCopyCollector::MemCallbacks.

template<class T>
virtual void cAllocationPool< T >::cStarvationCallbacks::OnOutOfReserve ( )
pure virtual

Is called when the allocation pool is unable to allocate memory.

Will be repeatedly called if it does not free sufficient memory

Implemented in cChunkMap::cStarvationCallbacks, and cChunkDataCopyCollector::MemCallbacks.

template<class T>
virtual void cAllocationPool< T >::cStarvationCallbacks::OnStartUsingReserve ( )
pure virtual

Is called when the reserve buffer starts to be used.

Implemented in cChunkMap::cStarvationCallbacks, and cChunkDataCopyCollector::MemCallbacks.


The documentation for this class was generated from the following file: