equal
deleted
inserted
replaced
302 |
302 |
303 //iGOomActionList->SetCurrentTarget(aTargetFree); |
303 //iGOomActionList->SetCurrentTarget(aTargetFree); |
304 iGOomActionList->SetCurrentTarget(iCurrentTarget); |
304 iGOomActionList->SetCurrentTarget(iCurrentTarget); |
305 |
305 |
306 iTrigger = aTrigger; |
306 iTrigger = aTrigger; |
|
307 |
|
308 iGOomActionList->SetUseSwRendering(ETrue); //Always use SW rendering in low mode .. (for now..) |
307 // Run the memory freeing actions |
309 // Run the memory freeing actions |
308 iGOomActionList->FreeMemory(aMaxPriority); |
310 iGOomActionList->FreeMemory(aMaxPriority); |
309 |
311 |
310 } |
312 } |
311 |
313 |
734 TRACES2("Request from %x cannot be served now as plugin %x is running", aClientId, currrentPluginRun); |
736 TRACES2("Request from %x cannot be served now as plugin %x is running", aClientId, currrentPluginRun); |
735 return EFalse; |
737 return EFalse; |
736 } |
738 } |
737 } |
739 } |
738 |
740 |
739 TRACES1("Going to process new request %d",iPostponeMemGood); |
|
740 return ETrue; |
741 return ETrue; |
741 } |
742 } |
742 |
743 |
743 void CMemoryMonitor::WaitAndSynchroniseMemoryState() //this will be called after freeing memory |
744 void CMemoryMonitor::WaitAndSynchroniseMemoryState() //this will be called after freeing memory |
744 { |
745 { |
774 { |
775 { |
775 FUNC_LOG; |
776 FUNC_LOG; |
776 TInt current = GetFreeMemory(); |
777 TInt current = GetFreeMemory(); |
777 if(current >= iGoodThreshold) |
778 if(current >= iGoodThreshold) |
778 { |
779 { |
779 if(!NeedToPostponeMemGood()) |
780 iClientsRequestingMemory.Reset(); |
780 { |
781 TRACES("SynchroniseMemoryState calling MemoryGOOD"); |
781 TRACES("SynchroniseMemoryState calling MemoryGOOD"); |
782 iGOomActionList->MemoryGood(); |
782 iGOomActionList->MemoryGood(); |
|
783 } |
|
784 else |
|
785 { |
|
786 iMemAllocationsGoingDown->Continue(); |
|
787 } |
|
788 } |
783 } |
789 else if(current < iLowThreshold) |
784 else if(current < iLowThreshold) |
790 { |
785 { |
791 iMemAllocationsGrowing->Stop(); |
786 iMemAllocationsGrowing->Stop(); |
792 iMemAllocationsGoingDown->Continue(); |
787 iMemAllocationsGoingDown->Continue(); |