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:22:18 +0200
commit2077ae4cc8e0a16f4cb117b88a0cf9b463c7980e (patch)
tree025efe3c0a30991a7e26f361ee8d1d6b7e7aed91 /cpukit/score/src/threadqextract.c
parentlibblock: PR2040: Avoid NULL pointer access (diff)
downloadrtems-2077ae4cc8e0a16f4cb117b88a0cf9b463c7980e.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 21aa2c2a46..b98152762e 100644
--- a/cpukit/score/src/threadqextract.c
+++ b/cpukit/score/src/threadqextract.c
@@ -41,7 +41,7 @@
* INTERRUPT LATENCY: NONE
*/
-void _Thread_queue_Extract(
+bool _Thread_queue_Extract(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
@@ -51,8 +51,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 );
}