diff -r 741e5bba2bd1 -r f9033e605ee2 installationservices/swi/source/sisregistry/server_legacy/sisregistryserver.cpp --- a/installationservices/swi/source/sisregistry/server_legacy/sisregistryserver.cpp Tue May 11 16:20:28 2010 +0300 +++ b/installationservices/swi/source/sisregistry/server_legacy/sisregistryserver.cpp Tue May 25 12:50:16 2010 +0300 @@ -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();