summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/threadqimpl.h
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/include/rtems/score/threadqimpl.h
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/include/rtems/score/threadqimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/threadqimpl.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h
index c72982d1c3..11de27872e 100644
--- a/cpukit/score/include/rtems/score/threadqimpl.h
+++ b/cpukit/score/include/rtems/score/threadqimpl.h
@@ -135,8 +135,11 @@ void _Thread_queue_Requeue(
*
* @param[in] the_thread_queue is the pointer to the ThreadQ header
* @param[in] the_thread is the pointer to a thread control block that is to be removed
+ *
+ * @retval true The extract operation was performed by the executing context.
+ * @retval false Otherwise.
*/
-void _Thread_queue_Extract(
+bool _Thread_queue_Extract(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
);
@@ -258,8 +261,11 @@ Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
* timeout or state
* - INTERRUPT LATENCY:
* + EXTRACT_PRIORITY
+ *
+ * @retval true The extract operation was performed by the executing context.
+ * @retval false Otherwise.
*/
-void _Thread_queue_Extract_priority_helper(
+bool _Thread_queue_Extract_priority_helper(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
bool requeuing
@@ -332,7 +338,7 @@ Thread_blocking_operation_States _Thread_queue_Enqueue_fifo (
* This routine removes the_thread from the_thread_queue
* and cancels any timeouts associated with this blocking.
*/
-void _Thread_queue_Extract_fifo(
+bool _Thread_queue_Extract_fifo(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
);