equal
deleted
inserted
replaced
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 |
|
109 RThread serverThread; |
101 RThread serverThread; |
110 User::LeaveIfError(serverThread.Create( |
102 User::LeaveIfError(serverThread.Create( |
111 KAlfServerThreadName, |
103 KAlfServerThreadName, |
112 AlfThreadFucntion, |
104 AlfThreadFucntion, |
113 16384, // magic |
105 16384, // magic |
114 4*1024*1024, // uses own heap for now |
106 4*1024*1024, // uses own heap for now |
115 KAlfServerMaxHeapSize, |
107 10*1024*1024, |
116 0, |
108 0, |
117 EOwnerThread)); |
109 EOwnerThread)); |
118 |
110 |
119 serverThread.Rendezvous(aStatus); |
111 serverThread.Rendezvous(aStatus); |
120 serverThread.Resume(); |
112 serverThread.Resume(); |