equal
deleted
inserted
replaced
50 iPlugin.FreeRam(aBytesRequested); |
50 iPlugin.FreeRam(aBytesRequested); |
51 |
51 |
52 iFreeMemoryCalled = ETrue; |
52 iFreeMemoryCalled = ETrue; |
53 |
53 |
54 // Wait for the required time before we signal completion. |
54 // Wait for the required time before we signal completion. |
55 iPluginWaiter->Start(); |
55 if(iPluginWaiter) |
|
56 { |
|
57 iPluginWaiter->Start(); |
|
58 } |
56 } |
59 } |
57 |
60 |
58 // Call the memory good function on the plugin but... |
61 // Call the memory good function on the plugin but... |
59 // only if there is an outstanding FreeMemory request |
62 // only if there is an outstanding FreeMemory request |
60 void CGOomRunPlugin::MemoryGood() |
63 void CGOomRunPlugin::MemoryGood() |
84 { |
87 { |
85 FUNC_LOG; |
88 FUNC_LOG; |
86 |
89 |
87 TInt waitDuration = CMemoryMonitor::GlobalConfig().iDefaultWaitAfterPlugin; |
90 TInt waitDuration = CMemoryMonitor::GlobalConfig().iDefaultWaitAfterPlugin; |
88 |
91 |
89 if (aPluginConfig.WaitAfterPluginDefined()) |
92 if(aPluginConfig.iSyncMode == ECheckRam) |
90 { |
93 { |
91 // If the wait duration for this plugin is overridden then use the overridden value |
94 if (aPluginConfig.WaitAfterPluginDefined()) |
92 waitDuration = aPluginConfig.WaitAfterPlugin(); |
95 { |
|
96 // If the wait duration for this plugin is overridden then use the overridden value |
|
97 waitDuration = aPluginConfig.WaitAfterPlugin(); |
|
98 } |
|
99 iPluginWaiter = CGOomPluginWaiter::NewL(waitDuration, *this); |
93 } |
100 } |
94 |
|
95 iPluginWaiter = CGOomPluginWaiter::NewL(waitDuration, *this); |
|
96 } |
101 } |
97 |
102 |
98 TUint CGOomRunPlugin::Id() |
103 TUint CGOomRunPlugin::Id() |
99 { |
104 { |
100 return iPluginId; |
105 return iPluginId; |