![]() |
SetGrowZone |
||||
Header: | MacMemory.h | Carbon status: | Supported | |
Specifies the current heap zones grow-zone function.
void SetGrowZone ( GrowZoneUPP growZone );
A pointer to the grow-zone function. A NULL value removes any previous grow-zone function from the zone.
To specify a grow-zone function for the current heap zone, pass a pointer to that function to the SetGrowZone function. Usually you call this function early in the execution of your application.
If you initialize your own heap zones besides the application and system zones, you can alternatively specify a grow-zone function as a parameter to the InitZone function.
The Memory Manager calls the grow-zone function only after exhausting all other avenues of satisfying a memory request, including compacting the zone, increasing its size (if it is the original application zone and is not yet at its maximum size), and purging blocks from it.
See Grow-Zone Operations for a complete description of a grow-zone function.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)