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