kernel/eka/nkern/sched.cpp
branchRCL_3
changeset 257 3e88ff8f41d5
parent 256 c1f20ce4abcf
equal deleted inserted replaced
256:c1f20ce4abcf 257:3e88ff8f41d5
    67 
    67 
    68 #ifndef __SCHEDULER_MACHINE_CODED__
    68 #ifndef __SCHEDULER_MACHINE_CODED__
    69 void TScheduler::Remove(NThreadBase* aThread)
    69 void TScheduler::Remove(NThreadBase* aThread)
    70 	{
    70 	{
    71 	__NK_ASSERT_DEBUG(!aThread->iHeldFastMutex);	// can't block while holding fast mutex
    71 	__NK_ASSERT_DEBUG(!aThread->iHeldFastMutex);	// can't block while holding fast mutex
    72 	iMadeUnReadyCounter++;
       
    73 	aThread->iTime=aThread->iTimeslice;		// thread has blocked so it gets a fresh timeslice for next time
    72 	aThread->iTime=aThread->iTimeslice;		// thread has blocked so it gets a fresh timeslice for next time
    74 	TPriListBase::Remove(aThread);
    73 	TPriListBase::Remove(aThread);
    75 	}
    74 	}
    76 #endif
    75 #endif
    77 
    76