equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2008 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "eventserverglobals.h" |
|
20 |
|
21 |
|
22 EventServerGlobals::EventServerGlobals() |
|
23 { |
|
24 JELOG2(EUtils); |
|
25 for (int i = 0; i < CEventQueue::KDispatchThreads; i++) |
|
26 { |
|
27 mLocks[i] = 0; |
|
28 } |
|
29 mVm = 0; |
|
30 } |
|
31 |
|
32 #if defined(__WINSCW__) |
|
33 |
|
34 #include <pls.h> |
|
35 EventServerGlobals* getEsStaticData() |
|
36 { |
|
37 JELOG2(EUtils); |
|
38 // Access the PLS of this process |
|
39 EventServerGlobals* data = Pls<EventServerGlobals>(TUid::Uid(0x200211E0)); |
|
40 return data; |
|
41 } |
|
42 |
|
43 #else |
|
44 |
|
45 static EventServerGlobals* sData = 0; |
|
46 |
|
47 EventServerGlobals* getEsStaticData() |
|
48 { |
|
49 JELOG2(EUtils); |
|
50 if (sData == 0) |
|
51 { |
|
52 sData = new EventServerGlobals(); |
|
53 } |
|
54 return sData; |
|
55 } |
|
56 #endif |
|
57 |
|