|
1 /* |
|
2 * Copyright (c) 2009 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 using System; |
|
18 using System.Collections.Generic; |
|
19 using System.Text; |
|
20 using System.Threading; |
|
21 using System.ComponentModel; |
|
22 using SymbianDebugLib.Engine; |
|
23 using CrashItemLib.Crash; |
|
24 using CrashItemLib.PluginAPI; |
|
25 using CrashItemLib.Engine.Sources; |
|
26 using SymbianUtils.SerializedOperations; |
|
27 using SymbianUtils.Tracer; |
|
28 |
|
29 namespace CrashItemLib.Engine.Operations |
|
30 { |
|
31 /// <summary> |
|
32 /// Serialises asynchronous requests - mainly because the symbol engine doesn't much |
|
33 /// like having dynamically loaded codesegments unloaded underneath it - i.e. it doesn't |
|
34 /// work multithreaded! |
|
35 /// </summary> |
|
36 internal class CIEngineOperationManager : SerializedOperationManager, ITracer |
|
37 { |
|
38 #region Constructors |
|
39 public CIEngineOperationManager( CIEngine aEngine ) |
|
40 { |
|
41 iEngine = aEngine; |
|
42 |
|
43 // Uncomment this line if you want operation tracing |
|
44 //base.Tracer = (ITracer) this; |
|
45 } |
|
46 #endregion |
|
47 |
|
48 #region API |
|
49 #endregion |
|
50 |
|
51 #region Properties |
|
52 #endregion |
|
53 |
|
54 #region Event handlers |
|
55 #endregion |
|
56 |
|
57 #region ITracer Members |
|
58 void ITracer.Trace( string aMessage ) |
|
59 { |
|
60 iEngine.Trace( aMessage ); |
|
61 } |
|
62 |
|
63 void ITracer.Trace( string aFormat, params object[] aParams ) |
|
64 { |
|
65 iEngine.Trace( aFormat, aParams ); |
|
66 } |
|
67 #endregion |
|
68 |
|
69 #region Internal methods |
|
70 #endregion |
|
71 |
|
72 #region Data members |
|
73 private readonly CIEngine iEngine; |
|
74 #endregion |
|
75 } |
|
76 } |