Update contrib.
1 // Copyright (c) 2002-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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
13 // e32test\smpsoak\d_smpsoak.h
16 #if !defined(__D_SMPSOAK_H__)
17 #define __D_RNDTIM_H__
19 #ifndef __KERNEL_MODE__
23 _LIT(KSmpSoakLddName,"SmpSoak");
26 class RSMPSoak : public RBusLogicalChannel
35 KTHREADSETCPUAFFINITY,
41 #ifndef __KERNEL_MODE__
43 { return DoCreate(KSmpSoakLddName(),TVersion(0,1,1),KNullUnit,NULL,NULL); }
44 inline TInt TryControl(TInt aCommand, TInt aTestNum)
45 { return DoControl((TInt)aCommand,(TAny*)aTestNum); }
46 inline TInt ChangeThreadAffinity(RThread* aThread, TInt cpu)
47 { return DoControl((TInt)KCHANGEAFFINITY,(TAny*)aThread->Handle(), (TAny*) cpu); }
48 inline TInt GetThreadCPU(RThread* aThread)
49 { return DoControl((TInt)KGETCURRENTCPU,(TAny*)aThread->Handle(), (TAny*) NULL); }