FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kHeapAlloc_AddExhaustionHandler ( kHeapAlloc  heapAlloc,
kHeapAllocExhaustionFx  callback,
kPointer  receiver 
)

Adds a callback that will be invoked upon memory exhaustion.

Various internal locks may be held by the thread that invokes the callback; accordingly, the implementation of the callback should avoid acquiring any additional locks that might result in deadlock.

Parameters
heapAllockHeapAlloc object.
callbackCallback to notify about heap exhaustion.
receiverPointer to the received which is passed to the callback.
Returns
Operation status.