summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadqextract.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-23 11:52:01 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-26 10:02:53 +0200
commit215ccceed3938c2d90a5e44493ac3d016230a502 (patch)
tree5acc71d435bcdf3fe9cdd2cc641bf9472a60bb54 /cpukit/score/src/threadqextract.c
parentlibblock: Avoid uninitialized variable (diff)
downloadrtems-215ccceed3938c2d90a5e44493ac3d016230a502.tar.bz2
score: PR2140: _Thread_queue_Extract()
Return if the executing context performed the extract operation since interrupts may interfere.
Diffstat (limited to 'cpukit/score/src/threadqextract.c')
-rw-r--r--cpukit/score/src/threadqextract.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/threadqextract.c b/cpukit/score/src/threadqextract.c
index 8e0e3e8baa..b2da4f0f87 100644
--- a/cpukit/score/src/threadqextract.c
+++ b/cpukit/score/src/threadqextract.c
@@ -21,7 +21,7 @@
#include <rtems/score/threadqimpl.h>
-void _Thread_queue_Extract(
+bool _Thread_queue_Extract(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
@@ -31,8 +31,8 @@ void _Thread_queue_Extract(
* is a macro and the underlying methods do not have the same signature.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
- _Thread_queue_Extract_priority( the_thread_queue, the_thread );
+ return _Thread_queue_Extract_priority( the_thread_queue, the_thread );
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
- _Thread_queue_Extract_fifo( the_thread_queue, the_thread );
+ return _Thread_queue_Extract_fifo( the_thread_queue, the_thread );
}