equal
deleted
inserted
replaced
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); |