equal
deleted
inserted
replaced
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
204 if (UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"patchdata_viesrv_dll_KVwsBoostAppPriorityBeforePanic",&valueOfKVwsBoostAppPriorityBeforePanic) == KErrNone) |
204 if (UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"patchdata_viesrv_dll_KVwsBoostAppPriorityBeforePanic",&valueOfKVwsBoostAppPriorityBeforePanic) == KErrNone) |
205 { |
205 { |
206 iEnableBoostAppPriorityBeforePanic = valueOfKVwsBoostAppPriorityBeforePanic; |
206 iEnableBoostAppPriorityBeforePanic = valueOfKVwsBoostAppPriorityBeforePanic; |
207 } |
207 } |
208 #endif |
208 #endif |
209 |
209 LOG3(CVwsLog::EQuiet,_L("CVwsServer::IsPriorityBoostBeforePanicEnabled(): iEnableBoostAppPriorityBeforePanic = [%d] "),iEnableBoostAppPriorityBeforePanic); |
|
210 |
210 if (iEnableBoostAppPriorityBeforePanic) |
211 if (iEnableBoostAppPriorityBeforePanic) |
211 { |
212 { |
212 CVwsStartupAware* startupAware = new(ELeave)CVwsStartupAware(*this); |
213 CVwsStartupAware* startupAware = new(ELeave)CVwsStartupAware(*this); |
213 TInt err = startupAware->Start(); |
214 TInt err = startupAware->Start(); |
214 if (err != KErrNone) |
215 if (err != KErrNone) |
835 RThread starved; |
836 RThread starved; |
836 if (starved.Open(aClient->ClientThreadId()) != KErrNone) |
837 if (starved.Open(aClient->ClientThreadId()) != KErrNone) |
837 { |
838 { |
838 return; |
839 return; |
839 } |
840 } |
840 |
841 |
841 if (starved.ProcessPriority() < EPriorityForeground) |
842 if (starved.ProcessPriority() < EPriorityForeground) |
842 { |
843 { |
843 RProcess owningProcess; |
844 RProcess owningProcess; |
844 TInt err = starved.Process(owningProcess); |
845 TInt err = starved.Process(owningProcess); |
845 if (err != KErrNone) |
846 if (err != KErrNone) |