summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadqflush.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-03-30 11:39:58 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-06 09:08:20 +0200
commit9809d6e08264525ea58839b98e6d90121b841196 (patch)
tree7ccbdd61436c18d1e1bae9033a3907afb5bff629 /cpukit/score/src/threadqflush.c
parentscore: Fix _Thread_queue_Extract_locked() (diff)
downloadrtems-9809d6e08264525ea58839b98e6d90121b841196.tar.bz2
score: _Thread_queue_Flush() parameter changes
Change _Thread_queue_Flush() into a macro that invokes _Thread_queue_Do_flush() with the parameter set defined by RTEMS_MULTIPROCESSING. For multiprocessing configurations add the object identifier to avoid direct use of the thread wait information. Use mp_ prefix for multiprocessing related parameters. Rename Thread_queue_Flush_callout to Thread_queue_MP_callout since this type will be re-used later for other operations as well.
Diffstat (limited to 'cpukit/score/src/threadqflush.c')
-rw-r--r--cpukit/score/src/threadqflush.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/score/src/threadqflush.c b/cpukit/score/src/threadqflush.c
index 13d2a5b1ac..694c7466d1 100644
--- a/cpukit/score/src/threadqflush.c
+++ b/cpukit/score/src/threadqflush.c
@@ -21,15 +21,15 @@
#include <rtems/score/threadqimpl.h>
#include <rtems/score/objectimpl.h>
-void _Thread_queue_Flush(
+void _Thread_queue_Do_flush(
Thread_queue_Control *the_thread_queue,
const Thread_queue_Operations *operations,
+ uint32_t status
#if defined(RTEMS_MULTIPROCESSING)
- Thread_queue_Flush_callout remote_extract_callout,
-#else
- Thread_queue_Flush_callout remote_extract_callout RTEMS_UNUSED,
+ ,
+ Thread_queue_MP_callout mp_callout,
+ Objects_Id mp_id
#endif
- uint32_t status
)
{
ISR_lock_Context lock_context;
@@ -59,7 +59,7 @@ void _Thread_queue_Flush(
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
- ( *remote_extract_callout )( the_thread );
+ ( *mp_callout )( the_thread, mp_id );
#endif
_Thread_queue_Acquire( the_thread_queue, &lock_context );