Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Low RAM callback

To detect low memory conditions, applications can register a callback by calling ISHELL_OnLowRAM(). The callback will be invoked when the system reaches a low-memory condition. This allows applications to perform memory clean up to free more memory for the system. Note that the low-memory callbacks are triggered when the system detects that a memory allocation, such as MALLOC(), has failed within Brew Shell context. Failures outside the Brew Shell context, such as allocations in service objects, will not trigger such callbacks.