summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-31 12:42:29 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-01 21:23:16 +0200
commit317774c99a5ce3765fab3410223cbbbbf28918a8 (patch)
treeb98dae0142ace87d0ec1c720751fc303c670399e /cpukit/include
parentscore: Fix blocking message queue receive (diff)
downloadrtems-317774c99a5ce3765fab3410223cbbbbf28918a8.tar.bz2
score: Remove _Thread_queue_First_locked()
The _Thread_queue_First_locked() was only used in one place. Move the code of this inline function to this place.
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/score/threadqimpl.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/cpukit/include/rtems/score/threadqimpl.h b/cpukit/include/rtems/score/threadqimpl.h
index 0a24d2da3b..19d9704dec 100644
--- a/cpukit/include/rtems/score/threadqimpl.h
+++ b/cpukit/include/rtems/score/threadqimpl.h
@@ -1139,34 +1139,6 @@ RTEMS_INLINE_ROUTINE bool _Thread_queue_Is_empty(
* @brief Returns the first thread on the thread queue if it exists, otherwise
* @c NULL.
*
- * The caller must be the owner of the thread queue lock. The thread queue
- * lock is not released.
- *
- * @param the_thread_queue The thread queue.
- * @param operations The thread queue operations.
- *
-* @retval first The first thread on the thread queue according to the enqueue
- * order.
- * @retval NULL No thread is present on the thread queue.
- */
-RTEMS_INLINE_ROUTINE Thread_Control *_Thread_queue_First_locked(
- Thread_queue_Control *the_thread_queue,
- const Thread_queue_Operations *operations
-)
-{
- Thread_queue_Heads *heads = the_thread_queue->Queue.heads;
-
- if ( heads != NULL ) {
- return ( *operations->first )( heads );
- } else {
- return NULL;
- }
-}
-
-/**
- * @brief Returns the first thread on the thread queue if it exists, otherwise
- * @c NULL.
- *
* @param the_thread_queue The thread queue.
*
* @retval first The first thread on the thread queue according to the enqueue