diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-8F8E3814-7ED6-4218-BEEF-741AE0E9366F.dita --- a/Symbian3/SDK/Source/GUID-8F8E3814-7ED6-4218-BEEF-741AE0E9366F.dita Fri Jul 16 17:23:46 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-8F8E3814-7ED6-4218-BEEF-741AE0E9366F.dita Tue Jul 20 12:00:49 2010 +0100 @@ -12,7 +12,7 @@ Changing the PriorityThis section describes how an application (internal or third-party) can change its priority by using OOM Monitor APIs. -

An application +

An application which is processing a task in the background can change its priority at runtime to protect itself from being closed by the OOM Monitor. For example:

  • Music Player playing music in the background

  • @@ -23,15 +23,15 @@ itself to be Busy using ROomMonitorSession::SetOomPriority(EOomPriorityBusy) method. When the application finishes its background job and becomes idle, it should change its priority to Normal.

    - -Create an OOM Monitor + +Create an OOM Monitor session ROomMonitorSession ioomMonitorSession; CleanUpClosePushL(ioomMonitorSession); User::LeaveIfError(ioomMonitorSession.Connect()); -Set the priority +Set the priority for the application to Busy before performing the background task iOomMonitorSession.SetOomPriority(ROomMonitorSession::EOomPriorityBusy); @@ -43,7 +43,7 @@ iOomMonitorSession.SetOomPriority(ROomMonitorSession::EOomPriorityNormal); -Close the session. +Close the session. iOomMonitorSession.Close();