summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadqextractfifo.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/threadqextractfifo.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/threadqextractfifo.c')
-rw-r--r--cpukit/score/src/threadqextractfifo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/score/src/threadqextractfifo.c b/cpukit/score/src/threadqextractfifo.c
index f40464d73c..3f6c3ea4a7 100644
--- a/cpukit/score/src/threadqextractfifo.c
+++ b/cpukit/score/src/threadqextractfifo.c
@@ -42,7 +42,7 @@
* EXTRACT_FIFO
*/
-void _Thread_queue_Extract_fifo(
+bool _Thread_queue_Extract_fifo(
Thread_queue_Control *the_thread_queue __attribute__((unused)),
Thread_Control *the_thread
)
@@ -53,7 +53,7 @@ void _Thread_queue_Extract_fifo(
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
_ISR_Enable( level );
- return;
+ return false;
}
_Chain_Extract_unprotected( &the_thread->Object.Node );
@@ -75,4 +75,5 @@ void _Thread_queue_Extract_fifo(
_Thread_MP_Free_proxy( the_thread );
#endif
+ return true;
}