kerneltest/e32test/system/d_nanowait.cpp
changeset 4 56f325a607ea
parent 0 a41df078684a
equal deleted inserted replaced
2:4122176ea935 4:56f325a607ea
    55 	virtual void HandleMsg(TMessageBase* aMsg);
    55 	virtual void HandleMsg(TMessageBase* aMsg);
    56 public:
    56 public:
    57 	inline DThread* Client() { return iThread; }
    57 	inline DThread* Client() { return iThread; }
    58 public:
    58 public:
    59 	DThread* iThread;
    59 	DThread* iThread;
       
    60 	TDynamicDfcQue* iDfcQ;
    60 	};
    61 	};
    61 
    62 
    62 
    63 
    63 
    64 
    64 DECLARE_STANDARD_LDD()
    65 DECLARE_STANDARD_LDD()
    93 // Install the LDD - overriding pure virtual
    94 // Install the LDD - overriding pure virtual
    94 //
    95 //
    95     {
    96     {
    96 	// Allocate a kernel thread to run the DFC 
    97 	// Allocate a kernel thread to run the DFC 
    97 	TInt r = Kern::DynamicDfcQCreate(gDfcQ, KDNanoWaitThreadPriority, KDNanoWaitThread);
    98 	TInt r = Kern::DynamicDfcQCreate(gDfcQ, KDNanoWaitThreadPriority, KDNanoWaitThread);
       
    99 
       
   100 #ifdef CPU_AFFINITY_ANY
       
   101 	NKern::ThreadSetCpuAffinity((NThread*)(gDfcQ->iThread), KCpuAffinityAny);			
       
   102 #endif
    98 
   103 
    99 	if (r != KErrNone)
   104 	if (r != KErrNone)
   100 		return r; 	
   105 		return r; 	
   101 
   106 
   102     return SetName(&KNanoWaitLddName);
   107     return SetName(&KNanoWaitLddName);