diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-1E4FFC56-8473-4E0A-B2E2-4E8DE8B1D00F.dita --- a/Symbian3/SDK/Source/GUID-1E4FFC56-8473-4E0A-B2E2-4E8DE8B1D00F.dita Wed Mar 31 11:11:55 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-1E4FFC56-8473-4E0A-B2E2-4E8DE8B1D00F.dita Fri Jun 11 12:39:03 2010 +0100 @@ -1,47 +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 + + + + + +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