diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-11-30 19:44:57 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-11-30 19:44:57 +0000 |
commit | dbec22db45b85f996d7bc06a9398fdc597f0ebe3 (patch) | |
tree | 76560c82731e7c132cc05b356acfec5cdd946a02 | |
parent | Whitespace removal. (diff) | |
download | rtems-dbec22db45b85f996d7bc06a9398fdc597f0ebe3.tar.bz2 |
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().
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/src/threaddelayended.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 85ed663289..f52266601e 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 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, score/src/pheapallocate.c: Changed base implementation of protected heap allocations to use _Heap_Allocate_aligned_with_boundary(). diff --git a/cpukit/score/src/threaddelayended.c b/cpukit/score/src/threaddelayended.c index 5f5e94e0d1..d3c6eb116b 100644 --- a/cpukit/score/src/threaddelayended.c +++ b/cpukit/score/src/threaddelayended.c @@ -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; } |