cryptoservices/filebasedcertificateandkeystores/source/generic/server/fsserver.cpp
branchRCL_3
changeset 61 641f389e9157
parent 45 030c4fbc13d7
child 62 a71299154b21
equal deleted inserted replaced
60:f18401adf8e1 61:641f389e9157
   130 	{
   130 	{
   131 	FSResources::InitialiseL();
   131 	FSResources::InitialiseL();
   132 	FSDialog::InitialiseL();
   132 	FSDialog::InitialiseL();
   133 	
   133 	
   134 	TPtrC serverName(KFSTokenServerName());
   134 	TPtrC serverName(KFSTokenServerName());
       
   135 		// Naming the server thread after the server helps to debug panics
       
   136 #ifdef __WINS__
       
   137 #ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER
       
   138 	serverName.Set(KFSNewTokenServerName());
       
   139 #endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER
       
   140 #endif // __WINS__
       
   141 		
   135 	StartL(serverName);
   142 	StartL(serverName);
   136 	
   143 	
   137 	// Ensure that the server still exits even if the 1st client fails to connect
   144 	// Ensure that the server still exits even if the 1st client fails to connect
   138 	iShutdown.ConstructL();
   145 	iShutdown.ConstructL();
   139 	iShutdown.Start();
   146 	iShutdown.Start();
   255  * and server and then run the scheduler.
   262  * and server and then run the scheduler.
   256  */
   263  */
   257 static void RunServerL()
   264 static void RunServerL()
   258 	{
   265 	{
   259 	TPtrC serverName(KFSTokenServerName());
   266 	TPtrC serverName(KFSTokenServerName());
   260 
   267 	// Naming the server thread after the server helps to debug panics
       
   268 #ifdef __WINS__
       
   269 #ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER
       
   270 	serverName.Set(KFSNewTokenServerName());
       
   271 #endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER
       
   272 #endif // __WINS__
   261 	
   273 	
   262 	User::LeaveIfError(User::RenameThread(serverName));
   274 	User::LeaveIfError(User::RenameThread(serverName));
   263 	
   275 	
   264 	// Create and install the active scheduler we need
   276 	// Create and install the active scheduler we need
   265 	CActiveScheduler* s=new(ELeave) CActiveScheduler;
   277 	CActiveScheduler* s=new(ELeave) CActiveScheduler;