kerneltest/e32test/benchmark/bm_ldd.cpp
branchRCL_3
changeset 39 2bb754abd467
parent 0 a41df078684a
equal deleted inserted replaced
36:bbf8bed59bcb 39:2bb754abd467
    68 	static void NTimerJitterCallBack(TAny*);
    68 	static void NTimerJitterCallBack(TAny*);
    69 
    69 
    70 	TInt StartTimerStampOverhead();
    70 	TInt StartTimerStampOverhead();
    71 	TInt RequestTimerStampOverhead();			// iRequestInterrupt() implementation
    71 	TInt RequestTimerStampOverhead();			// iRequestInterrupt() implementation
    72 
    72 
    73 	TInt SetAbsPrioirty(TInt aThreadHandle, TInt aNewPrio, TInt* aOldPrio);
    73 	TInt SetAbsPriority(TInt aThreadHandle, TInt aNewPrio, TInt* aOldPrio);
    74 
    74 
    75 	DMutex*			iLock;	// Shall be acquired by anyone who access the object's writable state.
    75 	DMutex*			iLock;	// Shall be acquired by anyone who access the object's writable state.
    76 
    76 
    77 	TBool			iStarted;					// ETrue when a particular sequence of measurements has been started
    77 	TBool			iStarted;					// ETrue when a particular sequence of measurements has been started
    78 	TBool			iPendingInterruptRequest;	// ETrue when an interrupt has been requested
    78 	TBool			iPendingInterruptRequest;	// ETrue when an interrupt has been requested
   531 //
   531 //
   532 // END OF "GETTING TIMER OVERHEAD"
   532 // END OF "GETTING TIMER OVERHEAD"
   533 //
   533 //
   534 
   534 
   535 //
   535 //
   536 // The implmentation of RBMDriver::SetAbsPrioirty() call.
   536 // The implementation of RBMDriver::SetAbsPriority() call.
   537 //
   537 //
   538 TInt DBMLChannel::SetAbsPrioirty(TInt aThreadHandle, TInt aNewPrio, TInt* aOldPrio)
   538 TInt DBMLChannel::SetAbsPriority(TInt aThreadHandle, TInt aNewPrio, TInt* aOldPrio)
   539 	{
   539 	{
   540 	NKern::LockSystem();
   540 	NKern::LockSystem();
   541 	//
   541 	//
   542 	// Under the system lock find the DThread object and increment its ref-count (i.e Open()) 
   542 	// Under the system lock find the DThread object and increment its ref-count (i.e Open()) 
   543 	//
   543 	//
   688 		case RBMChannel::ESetAbsPriority:
   688 		case RBMChannel::ESetAbsPriority:
   689 			{
   689 			{
   690 			TInt newPrio;
   690 			TInt newPrio;
   691 			TInt oldPrio;
   691 			TInt oldPrio;
   692 			umemget(&newPrio, a2, sizeof(newPrio));
   692 			umemget(&newPrio, a2, sizeof(newPrio));
   693 			r = SetAbsPrioirty((TInt) a1, newPrio, &oldPrio);
   693 			r = SetAbsPriority((TInt) a1, newPrio, &oldPrio);
   694 			umemput(a2, &oldPrio, sizeof(oldPrio));
   694 			umemput(a2, &oldPrio, sizeof(oldPrio));
   695 			break;
   695 			break;
   696 			}
   696 			}
   697 		default:
   697 		default:
   698 			r = KErrNotSupported;
   698 			r = KErrNotSupported;