diff -r 7333d7932ef7 -r 8b7f4e561641 installationservices/swi/source/sisregistry/server_legacy/sisregistryserver.cpp --- a/installationservices/swi/source/sisregistry/server_legacy/sisregistryserver.cpp Tue Aug 31 15:21:33 2010 +0300 +++ b/installationservices/swi/source/sisregistry/server_legacy/sisregistryserver.cpp Wed Sep 01 12:22:02 2010 +0100 @@ -25,6 +25,8 @@ #include #include #include +#include +#include #include "sisregistryserver.h" #include "sisregistrycache.h" @@ -104,6 +106,16 @@ // { DEBUG_PRINTF(_L8("SIS Registry Server - Starting Server")); + TInt value( EIdlePhase1Ok ); + RProperty::Get( KPSUidStartup, KPSIdlePhase1Ok, value ); + if ( value == EIdlePhase1NOK ) + { + DEBUG_PRINTF(_L8("SIS Registry Server - Setting process priority to Low")); + // Using 150 instead of EPriorityLow as there is conflict between TPriority + // and TProcessPriority enum constants. + RProcess().SetPriority(TProcessPriority(150)); + DEBUG_PRINTF(_L8("SIS Registry Server - Set process priority to Low")); + } StartL(KSisRegistryName); // create the cache iCache = CSisRegistryCache::NewL();