installationservices/swi/source/sisregistry/server_legacy/sisregistryserver.cpp
branchRCL_3
changeset 18 f9033e605ee2
parent 4 3eebb1e54d3a
child 25 7333d7932ef7
--- 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 <s32mem.h>
 #include <f32file.h>
 #include <s32file.h>
+#include <startupdomainpskeys.h>
+#include <e32const.h>
 
 #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();