summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/threadqimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-23 06:55:49 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-25 12:43:53 +0200
commitc3d8d9e0bf8b86d7ca8a51adbf1bbeaaf69f82cf (patch)
tree9ae8ffddbc32ea50a3c635adf0f4954d9d43e5ca /cpukit/score/include/rtems/score/threadqimpl.h
parentscore: Move thread queue object support (diff)
downloadrtems-c3d8d9e0bf8b86d7ca8a51adbf1bbeaaf69f82cf.tar.bz2
score: Get rid of mp_id parameter
Get rid of the mp_id parameter used for some thread queue methods. Use THREAD_QUEUE_QUEUE_TO_OBJECT() instead.
Diffstat (limited to 'cpukit/score/include/rtems/score/threadqimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/threadqimpl.h38
1 files changed, 8 insertions, 30 deletions
diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h
index f24e48c29f..011c410fa1 100644
--- a/cpukit/score/include/rtems/score/threadqimpl.h
+++ b/cpukit/score/include/rtems/score/threadqimpl.h
@@ -201,8 +201,7 @@ Thread_Control *_Thread_queue_Do_dequeue(
const Thread_queue_Operations *operations
#if defined(RTEMS_MULTIPROCESSING)
,
- Thread_queue_MP_callout mp_callout,
- Objects_Id mp_id
+ Thread_queue_MP_callout mp_callout
#endif
);
@@ -221,21 +220,18 @@ Thread_Control *_Thread_queue_Do_dequeue(
#define _Thread_queue_Dequeue( \
the_thread_queue, \
operations, \
- mp_callout, \
- mp_id \
+ mp_callout \
) \
_Thread_queue_Do_dequeue( \
the_thread_queue, \
operations, \
- mp_callout, \
- mp_id \
+ mp_callout \
)
#else
#define _Thread_queue_Dequeue( \
the_thread_queue, \
operations, \
- mp_callout, \
- mp_id \
+ mp_callout \
) \
_Thread_queue_Do_dequeue( \
the_thread_queue, \
@@ -348,8 +344,7 @@ bool _Thread_queue_Do_extract_locked(
Thread_Control *the_thread
#if defined(RTEMS_MULTIPROCESSING)
,
- Thread_queue_MP_callout mp_callout,
- Objects_Id mp_id
+ Thread_queue_MP_callout mp_callout
#endif
);
@@ -366,8 +361,6 @@ bool _Thread_queue_Do_extract_locked(
* @param[in] mp_callout Callout to unblock the thread in case it is actually a
* thread proxy. This parameter is only used on multiprocessing
* configurations.
- * @param[in] mp_id Object identifier of the object containing the thread
- * queue. This parameter is only used on multiprocessing configurations.
*
* @return Returns the unblock indicator for _Thread_queue_Unblock_critical().
* True indicates, that this thread must be unblocked by the scheduler later in
@@ -382,23 +375,20 @@ bool _Thread_queue_Do_extract_locked(
unblock, \
queue, \
the_thread, \
- mp_callout, \
- mp_id \
+ mp_callout \
) \
_Thread_queue_Do_extract_locked( \
unblock, \
queue, \
the_thread, \
- mp_callout, \
- mp_id \
+ mp_callout \
)
#else
#define _Thread_queue_Extract_locked( \
unblock, \
queue, \
the_thread, \
- mp_callout, \
- mp_id \
+ mp_callout \
) \
_Thread_queue_Do_extract_locked( \
unblock, \
@@ -434,7 +424,6 @@ void _Thread_queue_Do_extract_critical(
Thread_Control *the_thread,
#if defined(RTEMS_MULTIPROCESSING)
Thread_queue_MP_callout mp_callout,
- Objects_Id mp_id,
#endif
ISR_lock_Context *lock_context
);
@@ -487,8 +476,6 @@ void _Thread_queue_Do_extract_critical(
* @param[in] mp_callout Callout to unblock the thread in case it is actually a
* thread proxy. This parameter is only used on multiprocessing
* configurations.
- * @param[in] mp_id Object identifier of the object containing the thread
- * queue. This parameter is only used on multiprocessing configurations.
* @param[in] lock_context The lock context of the lock acquire.
*/
#if defined(RTEMS_MULTIPROCESSING)
@@ -497,7 +484,6 @@ void _Thread_queue_Do_extract_critical(
operations, \
the_thread, \
mp_callout, \
- mp_id, \
lock_context \
) \
_Thread_queue_Do_extract_critical( \
@@ -505,7 +491,6 @@ void _Thread_queue_Do_extract_critical(
operations, \
the_thread, \
mp_callout, \
- mp_id, \
lock_context \
)
#else
@@ -514,7 +499,6 @@ void _Thread_queue_Do_extract_critical(
operations, \
the_thread, \
mp_callout, \
- mp_id, \
lock_context \
) \
_Thread_queue_Do_extract_critical( \
@@ -644,7 +628,6 @@ size_t _Thread_queue_Do_flush_critical(
Thread_queue_Flush_filter filter,
#if defined(RTEMS_MULTIPROCESSING)
Thread_queue_MP_callout mp_callout,
- Objects_Id mp_id,
#endif
ISR_lock_Context *lock_context
);
@@ -666,8 +649,6 @@ size_t _Thread_queue_Do_flush_critical(
* operation should stop or continue.
* @param mp_callout Callout to extract the proxy of a remote thread. This
* parameter is only used on multiprocessing configurations.
- * @param mp_id Object identifier of the object containing the thread queue.
- * This parameter is only used on multiprocessing configurations.
*
* @return The count of extracted threads.
*/
@@ -677,7 +658,6 @@ size_t _Thread_queue_Do_flush_critical(
operations, \
filter, \
mp_callout, \
- mp_id, \
lock_context \
) \
_Thread_queue_Do_flush_critical( \
@@ -685,7 +665,6 @@ size_t _Thread_queue_Do_flush_critical(
operations, \
filter, \
mp_callout, \
- mp_id, \
lock_context \
)
#else
@@ -694,7 +673,6 @@ size_t _Thread_queue_Do_flush_critical(
operations, \
filter, \
mp_callout, \
- mp_id, \
lock_context \
) \
_Thread_queue_Do_flush_critical( \