uiacceltk/hitchcock/goommonitor/src/goommonitorsession.cpp
branchRCL_3
changeset 3 d8a3531bc6b8
parent 0 15bf7259bb7c
child 53 5ba07f7750a9
child 63 e1987ab3768a
equal deleted inserted replaced
0:15bf7259bb7c 3:d8a3531bc6b8
    57         return SendReceive(EGOomMonitorRequestFreeMemory, p);
    57         return SendReceive(EGOomMonitorRequestFreeMemory, p);
    58         }
    58         }
    59     return KErrNone;    
    59     return KErrNone;    
    60     }
    60     }
    61 
    61 
       
    62 EXPORT_C void RGOomMonitorSession::MemoryAllocationsComplete()
       
    63     {
       
    64     FUNC_LOG;
       
    65     if (IsConnected())
       
    66         {
       
    67         SendReceive(EGOomMonitorMemoryAllocationsComplete);
       
    68         }
       
    69     }
       
    70 
    62 EXPORT_C TInt RGOomMonitorSession::RequestOptionalRam(TInt aBytesRequested, TInt aMinimumBytesNeeded, TInt aPluginId, TInt& aBytesAvailable)
    71 EXPORT_C TInt RGOomMonitorSession::RequestOptionalRam(TInt aBytesRequested, TInt aMinimumBytesNeeded, TInt aPluginId, TInt& aBytesAvailable)
    63     {
    72     {
    64     FUNC_LOG;
    73     FUNC_LOG;
    65     if (IsConnected())
    74     if (IsConnected())
    66         {
    75         {
   126         TIpcArgs p(aWgId);
   135         TIpcArgs p(aWgId);
   127         SendReceive(EGOomMonitorThisAppIsNotExiting, p);
   136         SendReceive(EGOomMonitorThisAppIsNotExiting, p);
   128         }
   137         }
   129     }
   138     }
   130 
   139 
   131 
   140 //TODO should this be asynchronous - can be called from a goom plugin, which is called from goom - deadlock ?
   132 EXPORT_C void RGOomMonitorSession::SetGOomPriority(TGOomPriority aPriority)
   141 EXPORT_C void RGOomMonitorSession::SetGOomPriority(TGOomPriority aPriority)
   133     {
   142     {
   134     FUNC_LOG;
   143     FUNC_LOG;
   135     if (!IsConnected())
   144     if (!IsConnected())
   136         {
   145         {