equal
deleted
inserted
replaced
139 //CActiveScheduler* activeScheduler = new ( ELeave ) CActiveScheduler; |
139 //CActiveScheduler* activeScheduler = new ( ELeave ) CActiveScheduler; |
140 //CleanupStack::PushL(activeScheduler); |
140 //CleanupStack::PushL(activeScheduler); |
141 |
141 |
142 // Install active scheduler |
142 // Install active scheduler |
143 //CActiveScheduler::Install(activeScheduler); |
143 //CActiveScheduler::Install(activeScheduler); |
144 |
144 User::RenameThread(KHarvesterServerName); |
145 // Construct server |
145 // Construct server |
146 CHarvesterServer* server = CHarvesterServer::NewLC(); |
146 CHarvesterServer* server = CHarvesterServer::NewLC(); |
147 |
147 |
148 // Set thread priority |
148 // Set thread priority |
149 //RProcess().SetPriority(EPriorityBackground); |
149 //RProcess().SetPriority(EPriorityBackground); |
150 |
150 |
151 // Rename the thread. |
151 // Rename the thread. |
152 User::RenameThread(KHarvesterServerName); |
152 |
153 RProcess::Rendezvous(KErrNone); |
153 RProcess::Rendezvous(KErrNone); |
154 |
154 |
155 // Signal client thread if started by such |
155 // Signal client thread if started by such |
156 RSemaphore semaphore; |
156 RSemaphore semaphore; |
157 TInt err = semaphore.OpenGlobal(KHarvesterServerSemaphoreName); |
157 TInt err = semaphore.OpenGlobal(KHarvesterServerSemaphoreName); |