[rtems commit] score: Simplify _Thread_queue_Do_flush()
Sebastian Huber
sebh at rtems.org
Wed Apr 6 08:32:11 UTC 2016
Module: rtems
Branch: master
Commit: 818ad5eb7640af76859e78123b9f33b68b99fd7e
Changeset: http://git.rtems.org/rtems/commit/?id=818ad5eb7640af76859e78123b9f33b68b99fd7e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Mar 30 13:45:06 2016 +0200
score: Simplify _Thread_queue_Do_flush()
Also set the thread wait return code for thread proxies since this
causes no harm.
---
cpukit/score/src/threadqflush.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/cpukit/score/src/threadqflush.c b/cpukit/score/src/threadqflush.c
index 694c746..56dd805 100644
--- a/cpukit/score/src/threadqflush.c
+++ b/cpukit/score/src/threadqflush.c
@@ -45,10 +45,7 @@ void _Thread_queue_Do_flush(
)
)
) {
-#if defined(RTEMS_MULTIPROCESSING)
- if ( _Objects_Is_local_id( the_thread->Object.id ) )
-#endif
- the_thread->Wait.return_code = status;
+ the_thread->Wait.return_code = status;
_Thread_queue_Extract_critical(
&the_thread_queue->Queue,
More information about the vc
mailing list