FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
typedef kStatus(kCall* kHeapAllocExhaustionFx)(kHeapAlloc heapAlloc, kPointer receiver, kSize minimumRegionSize)

Signature of callback to notify about heap exhaustion.

Parameters
heapAllockHeapAlloc object.
receiverPointer to the receiver specified in kHeapAlloc_AddExhaustionHandler function.
minimumRegionSizeThe smallest region that could be added to satisfy the memory request.
Returns
If callback returns kOK, kHeapAlloc will re-attempt allocation; otherwise, the allocation operation will be allowed to fail.