Symbian3/SDK/Source/GUID-0185D5DC-5142-42C3-8FFB-8EB76D49AB06.dita
changeset 13 48780e181b38
parent 8 ae94777fff8f
equal deleted inserted replaced
12:80ef3a206772 13:48780e181b38
    19 free RAM synchronously is easy to implement because no active object is needed
    19 free RAM synchronously is easy to implement because no active object is needed
    20 and is recommended when there is no need to perform any other task while waiting
    20 and is recommended when there is no need to perform any other task while waiting
    21 for the request to complete. This approach is not recommended in case of a
    21 for the request to complete. This approach is not recommended in case of a
    22 server, as synchronous call blocks the server and it cannot serve its clients
    22 server, as synchronous call blocks the server and it cannot serve its clients
    23 during synchronous wait.</p>     </context>
    23 during synchronous wait.</p>     </context>
    24 <steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-10-1-10-1-1-8-1-5-1-6-1-6-1-6-1-3-3">
    24 <steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-10-1-12-1-1-8-1-5-1-6-1-6-1-6-1-3-3">
    25 <step id="GUID-9A69E5AD-E938-4092-A8C2-CB65C37C8962-GENID-1-10-1-10-1-1-8-1-5-1-6-1-6-1-6-1-3-3-1"><cmd>Request free memory.</cmd>
    25 <step id="GUID-9A69E5AD-E938-4092-A8C2-CB65C37C8962-GENID-1-10-1-12-1-1-8-1-5-1-6-1-6-1-6-1-3-3-1"><cmd>Request free memory.</cmd>
    26 <info>           <codeblock xml:space="preserve">User::LeaveIfError(iOomMonitorSession.RequestFreeMemory(KLargeValueToAllocate));
    26 <info>           <codeblock xml:space="preserve">User::LeaveIfError(iOomMonitorSession.RequestFreeMemory(KLargeValueToAllocate));
    27 DoFunctionRequiring_KLargeValueToAllocate_Bytes();</codeblock>         </info>
    27 DoFunctionRequiring_KLargeValueToAllocate_Bytes();</codeblock>         </info>
    28 </step>
    28 </step>
    29 </steps>
    29 </steps>
    30 <example><p>The following code snippet illustrates an synchronous request
    30 <example><p>The following code snippet illustrates an synchronous request