equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent |
|
20 */ |
|
21 |
|
22 #ifndef STRESSLETTHREAD_H |
|
23 #define STRESSLETTHREAD_H |
|
24 |
|
25 #include "e32base.h" |
|
26 |
|
27 #include "stresslet.h" |
|
28 |
|
29 class CBaseStressletAllocator; |
|
30 |
|
31 class CStressletThread : public CActive |
|
32 { |
|
33 public: |
|
34 CStressletThread(); |
|
35 ~CStressletThread(); |
|
36 |
|
37 void StartL(CBaseStressletAllocator * aAllocator, MTestStepReporter& aReporter); |
|
38 |
|
39 private: |
|
40 void RunL(); |
|
41 void DoCancel(); |
|
42 void StartThreadL(); |
|
43 |
|
44 private: |
|
45 static TBuf<64> iNextName; |
|
46 static TInt iNextId; |
|
47 |
|
48 private: |
|
49 CStresslet::CStressletParams* iStressletParams; |
|
50 CStresslet * iStresslet; |
|
51 RThread iThread; |
|
52 }; |
|
53 |
|
54 #endif // STRESSLETTHREAD_H |