equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * The file containt the main method of the STS Server. |
|
16 */ |
|
17 |
|
18 #include "stsserver.h" |
|
19 #include "stsclientservercommon.h" |
|
20 |
|
21 TInt E32Main() |
|
22 { |
|
23 TInt returnValue = KErrNoMemory; |
|
24 |
|
25 RThread myThread; |
|
26 myThread.SetPriority(EPriorityAbsoluteRealTime1); |
|
27 |
|
28 __UHEAP_MARK; |
|
29 |
|
30 CTrapCleanup* cleanup = CTrapCleanup::New(); |
|
31 |
|
32 if (cleanup) |
|
33 { |
|
34 // Run the server and request a process rendezvous. |
|
35 TRAP( returnValue, CStsServer::RunServerL( ETrue ) ); |
|
36 delete cleanup; |
|
37 } |
|
38 __UHEAP_MARKEND; |
|
39 |
|
40 return returnValue; |
|
41 } // end E32Main |