comparison packages/kernel/current/src/common/thread.cxx @ 8:ece80412419a ecos-sw-1999-05-21

Merge from eCos master repository on 1999-05-21-22:05:54-BST
author jlarmour
date Fri, 21 May 1999 15:09:30 +0000
parents d376b777e2ce
children c38311975d4f
comparison
equal deleted inserted replaced
7:e55593b6dcea 8:ece80412419a
757 #ifdef CYGFUN_KERNEL_THREADS_TIMER 757 #ifdef CYGFUN_KERNEL_THREADS_TIMER
758 timer.disable(); // and make sure the timer 758 timer.disable(); // and make sure the timer
759 // does not persist. 759 // does not persist.
760 #endif 760 #endif
761 761
762 switch( sleep_reason ) 762 if ( EXIT != wake_reason ) switch( sleep_reason ) {
763 { 763 // Only do any of this if the thread is not in pending death already:
764 764
765 case NONE: 765 case NONE:
766 // The thread is not sleeping for any reason, it must be 766 // The thread is not sleeping for any reason, it must be
767 // on a run queue. 767 // on a run queue.
768 // We can safely deschedule and set its state. 768 // We can safely deschedule and set its state.