Synopsis
typedef struct {
  unsigned long *first;
  unsigned long wordSize;
  unsigned long *lastPlusOne;
  CTL_MUTEX_t allocLock;
  CTL_HEAP_STATISTICS_t stats;
} CTL_HEAP_t;
Description

CTL_HEAP_t describes the memory area maintained as a heap.

Structure
first
Pointer to the first word in the heap.
wordSize
The size, in words, of the heap.
lastPlusOne
A pointer to one word beyond the heap, i.e. the first word that is not in the heap.
allocLock
A mutex to prevent simultaneous heap allocations.
stats
Statistics maintained to monitor the performance of the heap.