diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-1E4FFC56-8473-4E0A-B2E2-4E8DE8B1D00F.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-1E4FFC56-8473-4E0A-B2E2-4E8DE8B1D00F.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,47 @@ + + + + + +Increasing +the Priority of a Third-Party ApplicationThis section describes how a third-party application can increase +its OOM priority by using OOM Monitor APIs. +

Third-party applications +that needs to be running all the time can increase their priority to High from +the default level (Normal). By increasing the priority, applications +can protect itself from being closed by the OOM Monitor. For example:

    +
  • IP Phone application receiving IP calls

  • +
  • Instant Messaging application receiving messages

  • +

are applications which listens for events from the network all the +time.

+ +Create an OOM Monitor +session +ROomMonitorSession ioomMonitorSession; +CleanUpClosePushL(ioomMonitorSession); +User::LeaveIfError(ioomMonitorSession.Connect()); + + +Set the priority +for the application to High . +iOomMonitorSession.SetOomPriority(ROomMonitorSession::EOomPriorityHigh); +DoCriticalBackgroundProcessingL(); + + +Close the session. +iOomMonitorSession.Close(); + + + +
+OOM Monitor +Priority +OOM Monitor +Reference +
\ No newline at end of file