* score/src/threaddelayended.c: Clear only the states that are used to
	block until someone calls _Thread_Delay_ended().
This commit is contained in:
Joel Sherrill
2009-11-30 19:44:57 +00:00
parent 1857b0082d
commit dbec22db45
2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2009-11-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/threaddelayended.c: Clear only the states that are used to
block until someone calls _Thread_Delay_ended().
2009-11-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/score/protectedheap.h,

View File

@@ -59,7 +59,12 @@ void _Thread_Delay_ended(
#endif
break;
case OBJECTS_LOCAL:
_Thread_Unblock( the_thread );
_Thread_Clear_state(
the_thread,
STATES_DELAYING
| STATES_WAITING_FOR_TIME
| STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Thread_Unnest_dispatch();
break;
}