COomMonitorPluginV2 Class Reference

class COomMonitorPluginV2 : public COomMonitorPlugin

Inherits from

Member Functions Documentation

FreeRam()

IMPORT_C voidFreeRam()[virtual]

FreeRam is called when the system RAM level becomes low. This plugin is requested to help free some RAM.

Note that OomMonitorV2 will not call this version of the function so it does not need to be implemented.

FreeRam(TInt)

voidFreeRam(TIntaBytesToFree)[pure virtual]

FreeRam is called when the system RAM level becomes low. This plugin is requested to help free some RAM. Note that it is desirable to delete all memory associated with this plugin if not using a disconnected chunk. The reason for this is that by only releasing a small amount of the memory you reduce the chances of that memory being at the end of the chunk and therefore reduce the likelihood of it being released to the system.

Parameters

TInt aBytesToFreeThe minimum number of bytes of free memory that the plugin should try to free.

MemoryGood()

voidMemoryGood()[pure virtual]

MemoryGood is called when the system RAM level becomes good after being low.The plugin may take this opportunity to start using RAM again. Nb It is assumed that the plugin will not immediately cause a large increase in memory use, but that memory may be used over time, otherwise the plugin may cause oscillation between low and good memory states.