#include <nitro/os.h>
OSHeapHandle OS_SetCurrentHeap( OSArenaId id, OSHeapHandle heap );
id | The arena ID of the arena in which you will set a current heap. |
heap | The handle of the heap to set as the current heap. |
The handle of the heap that was the previous current heap.
Sets the current heap.
A current heap exists in each arena. This function only sets the current heap in the specified arena. The arena is specified with the arena ID (id). To read more about this value, see OS_InitArena
.
OS_InitArena
, OS_InitAlloc
, OS_CreateHeap
2004/01/06 Initial version.
CONFIDENTIAL