Memory management | |
SInt32 | HandleGrowZoneRecoverMemory (SInt32 inBytesNeeded) |
virtual SInt32 | RecoverMemmory (SInt32 inBytesNeeded) |
SInt32 | UseMemoryReserve () |
static pascal SInt32 | CP_GrowZoneCallBack (SInt32 inBytesNeeded) |
Public Member Functions | |
Constructor / Destructor | |
CP_GrowZone (SInt32 inMemoryReserve) | |
Constructor. | |
virtual | ~CP_GrowZone () |
Destructor. | |
Setters | |
void | AlertUser () |
Testers | |
bool | HasMemoryReserve () |
Static Public Member Functions | |
Instance | |
static CP_GrowZone * | Instance () |
Protected Attributes | |
Handle | fReservedMemory |
Size | fReservedMemorySize |
bool | fAlertUser |
Static Protected Attributes | |
static CP_GrowZone * | fsInstance = NULL |
static GrowZoneUPP | gGrowZoneUPP = NULL |
|
|
|
|
|
Returns the single instance of this object.
|
|
Sets a flag to alert the user when memory is getting low.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Single instance of this class. |
|
UPP used with the grow zone to manage memory. |
|
Desired amount of memory to hold in reserve. |
|
Actual amount of memory being held in reserve. |