uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp
branchRCL_3
changeset 20 31fccae4f8a7
parent 19 e5af45d51884
equal deleted inserted replaced
19:e5af45d51884 20:31fccae4f8a7
    96 		        server.Resume();        // logon OK - start the server
    96 		        server.Resume();        // logon OK - start the server
    97 	            }
    97 	            }
    98 	        }
    98 	        }
    99 	    else
    99 	    else
   100 	    	{
   100 	    	{
       
   101             // Maximum heap size for alfredserver thread. 
       
   102             // Emulator has smaller heap size in order not to cause memory issues.
       
   103 #ifdef __WINSCW__
       
   104             const TInt KAlfServerMaxHeapSize = 10*1024*1024;
       
   105 #else
       
   106             const TInt KAlfServerMaxHeapSize = 16*1024*1024;
       
   107 #endif
       
   108 
   101     	    RThread serverThread;
   109     	    RThread serverThread;
   102     	    User::LeaveIfError(serverThread.Create(
   110     	    User::LeaveIfError(serverThread.Create(
   103 	    	        KAlfServerThreadName,
   111 	    	        KAlfServerThreadName,
   104 	    	        AlfThreadFucntion,
   112 	    	        AlfThreadFucntion,
   105 	    	        16384, // magic
   113 	    	        16384, // magic
   106 	    	        4*1024*1024, // uses own heap for now
   114 	    	        4*1024*1024, // uses own heap for now
   107 	    	        10*1024*1024,
   115 	    	        KAlfServerMaxHeapSize,
   108 	    	        0,
   116 	    	        0,
   109 	    	        EOwnerThread));
   117 	    	        EOwnerThread));
   110 	    	    
   118 	    	    
   111 	    	serverThread.Rendezvous(aStatus);
   119 	    	serverThread.Rendezvous(aStatus);
   112 	    	serverThread.Resume();
   120 	    	serverThread.Resume();