kerneltest/e32test/realtime/d_latncy.cpp
changeset 31 56f325a607ea
parent 0 a41df078684a
child 87 2f92ad2dc5db
equal deleted inserted replaced
15:4122176ea935 31:56f325a607ea
   243 
   243 
   244 	// Allocate a kernel thread to run the DFC 
   244 	// Allocate a kernel thread to run the DFC 
   245 	TInt r = Kern::DynamicDfcQCreate(iRtDfcQ, KNumPriorities-1,KThreadName);
   245 	TInt r = Kern::DynamicDfcQCreate(iRtDfcQ, KNumPriorities-1,KThreadName);
   246 
   246 
   247 	if (r != KErrNone)
   247 	if (r != KErrNone)
   248 		return r; 	
   248 		return r;
       
   249 	
       
   250 #ifdef CPU_AFFINITY_ANY
       
   251 	NKern::ThreadSetCpuAffinity((NThread*)(iRtDfcQ->iThread), KCpuAffinityAny);			
       
   252 #endif
   249 
   253 
   250 	iMsDfc.SetDfcQ(iRtDfcQ);
   254 	iMsDfc.SetDfcQ(iRtDfcQ);
   251 	iClient=&Kern::CurrentThread();
   255 	iClient=&Kern::CurrentThread();
   252 	iClient->Open();
   256 	iClient->Open();
   253 	Kern::SetThreadPriority(KNumPriorities-2);
   257 	Kern::SetThreadPriority(KNumPriorities-2);