|
FireSync API
|
| 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.
| heapAlloc | kHeapAlloc object. |
| callback | Callback to notify about heap exhaustion. |
| receiver | Pointer to the received which is passed to the callback. |