uiacceltk/hitchcock/goommonitor/src/goommemorymonitorsession.cpp
branchRCL_3
changeset 5 433cbbb6a04b
parent 3 d8a3531bc6b8
child 7 88b23e2e82e1
equal deleted inserted replaced
3:d8a3531bc6b8 5:433cbbb6a04b
    88                 {
    88                 {
    89                 iRequestFreeRam = aMessage;
    89                 iRequestFreeRam = aMessage;
    90 
    90 
    91                 Server().Monitor().SessionInCriticalAllocation(1, clientId);
    91                 Server().Monitor().SessionInCriticalAllocation(1, clientId);
    92                 
    92                 
    93                 TRAPD(err, Monitor().RequestFreeMemoryL(aMessage.Int0(), iUseAbsoluteTargets));
    93                 TRAPD(err, Monitor().RequestFreeMemoryL(aMessage.Int0()));
    94                 if (err)
    94                 if (err)
    95                     {
    95                     {
    96                     // completes the message if that was left to pending
    96                     // completes the message if that was left to pending
    97                     CloseAppsFinished(0, EFalse);
    97                     CloseAppsFinished(0, EFalse);
    98                     }
    98                     }
   133                 }
   133                 }
   134             Server().Monitor().SetActiveClient(clientId);
   134             Server().Monitor().SetActiveClient(clientId);
   135             // message will be completed when CloseAppsFinished() is called.
   135             // message will be completed when CloseAppsFinished() is called.
   136             iRequestFreeRam = aMessage;
   136             iRequestFreeRam = aMessage;
   137             iMinimumMemoryRequested = aMessage.Int1();
   137             iMinimumMemoryRequested = aMessage.Int1();
   138             Monitor().FreeOptionalRamL(aMessage.Int0(), aMessage.Int2(), iUseAbsoluteTargets);
   138             Monitor().FreeOptionalRamL(aMessage.Int0(), aMessage.Int2());
   139             break;
   139             break;
   140             
   140             
   141         case EGOomMonitorSetPriorityBusy:
   141         case EGOomMonitorSetPriorityBusy:
   142             Monitor().SetPriorityBusy(aMessage.Int0());
   142             Monitor().SetPriorityBusy(aMessage.Int0());
   143             aMessage.Complete(KErrNone);
   143             aMessage.Complete(KErrNone);