0
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-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 the License "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 |
|
|
20 |
|
|
21 |
#ifndef __BASE_STEP_INL__
|
|
22 |
#define __BASE_STEP_INL__
|
|
23 |
|
|
24 |
TInt CT_F32BaseStep::ThreadFunction(TAny* aPtr)
|
|
25 |
{
|
|
26 |
CT_F32BaseStep* mythread=static_cast<CT_F32BaseStep*>(aPtr);
|
|
27 |
CTrapCleanup* cleanup=CTrapCleanup::New();
|
|
28 |
RFs session;
|
|
29 |
|
|
30 |
TRAPD(result, mythread->ThreadPreFuncL(session));
|
|
31 |
if(result==KErrNone )
|
|
32 |
{
|
|
33 |
TRAPD(result, mythread->ThreadFuncL(session));
|
|
34 |
mythread->ThreadPostFuncL(session);
|
|
35 |
}
|
|
36 |
|
|
37 |
delete cleanup;
|
|
38 |
cleanup=NULL;
|
|
39 |
return result;
|
|
40 |
}
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
#endif /* __BASE_STEP_INL__ */
|
|
45 |
|
|
46 |
|