Symbian3/SDK/Source/GUID-217C992B-AC56-42A7-9920-DEC891D233A5.dita
changeset 8 ae94777fff8f
parent 7 51a74ef9ed63
child 13 48780e181b38
equal deleted inserted replaced
7:51a74ef9ed63 8:ae94777fff8f
    17 For more information on optional RAM, refer to <xref href="GUID-7D727FC9-EF32-49FD-B72E-E1E00315206E.dita">Optional
    17 For more information on optional RAM, refer to <xref href="GUID-7D727FC9-EF32-49FD-B72E-E1E00315206E.dita">Optional
    18 RAM Allocation</xref>.</p><p>An application can release the optional RAM allocation
    18 RAM Allocation</xref>.</p><p>An application can release the optional RAM allocation
    19 as soon as it is not needed anymore. An application can also keep the optional
    19 as soon as it is not needed anymore. An application can also keep the optional
    20 RAM allocation until OOM Monitor requests to release it.</p> 
    20 RAM allocation until OOM Monitor requests to release it.</p> 
    21    </context>
    21    </context>
    22 <steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-8-1-10-1-1-8-1-5-1-6-1-7-1-3-2">
    22 <steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-10-1-10-1-1-8-1-5-1-6-1-7-1-3-2">
    23 <step id="GUID-83631E4F-71D0-4FD2-8FD6-46689AAFA761-GENID-1-8-1-10-1-1-8-1-5-1-6-1-7-1-3-2-1"><cmd>Create an OOM Monitor
    23 <step id="GUID-83631E4F-71D0-4FD2-8FD6-46689AAFA761-GENID-1-10-1-10-1-1-8-1-5-1-6-1-7-1-3-2-1"><cmd>Create an OOM Monitor
    24 session.</cmd>
    24 session.</cmd>
    25 <info><codeblock xml:space="preserve">ROomMonitorSession ioomMonitorSession;
    25 <info><codeblock xml:space="preserve">ROomMonitorSession ioomMonitorSession;
    26 CleanUpClosePushL(ioomMonitorSession);
    26 CleanUpClosePushL(ioomMonitorSession);
    27 User::LeaveIfError(ioomMonitorSession.Connect());
    27 User::LeaveIfError(ioomMonitorSession.Connect());
    28 </codeblock></info>
    28 </codeblock></info>
    29 </step>
    29 </step>
    30 <step id="GUID-83631E4F-71D0-4FD2-8FD6-46689AAFA761-GENID-1-8-1-10-1-1-8-1-5-1-6-1-7-1-3-2-2"><cmd>Request for optional
    30 <step id="GUID-83631E4F-71D0-4FD2-8FD6-46689AAFA761-GENID-1-10-1-10-1-1-8-1-5-1-6-1-7-1-3-2-2"><cmd>Request for optional
    31 RAM.</cmd>
    31 RAM.</cmd>
    32 <info><codeblock xml:space="preserve">iOomMonitorSession.RequestOptionalRam(aBytesRequested,aMinimumBytesNeeded,aPluginId,aBytesAvailable);
    32 <info><codeblock xml:space="preserve">iOomMonitorSession.RequestOptionalRam(aBytesRequested,aMinimumBytesNeeded,aPluginId,aBytesAvailable);
    33 </codeblock><p/></info>
    33 </codeblock><p/></info>
    34 </step>
    34 </step>
    35 <step id="GUID-5B3E8176-528F-45E7-B1CE-57ADCFAB5C6C-GENID-1-8-1-10-1-1-8-1-5-1-6-1-7-1-3-2-3"><cmd>Close the session.</cmd>
    35 <step id="GUID-5B3E8176-528F-45E7-B1CE-57ADCFAB5C6C-GENID-1-10-1-10-1-1-8-1-5-1-6-1-7-1-3-2-3"><cmd>Close the session.</cmd>
    36 <info><codeblock xml:space="preserve">iOomMonitorSession.Close();
    36 <info><codeblock xml:space="preserve">iOomMonitorSession.Close();
    37 </codeblock></info>
    37 </codeblock></info>
    38 </step>
    38 </step>
    39 </steps>
    39 </steps>
    40 </taskbody><related-links>
    40 </taskbody><related-links>