summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-03-30 08:36:08 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-03-30 08:45:58 +0200
commit9d9b6b56d1ecf0d8918556835fa0f83289140791 (patch)
tree65391cb550493bbac4cdb490b800807ee4d7734f /cpukit/rtems
parentscore: Fix set but not used warning (diff)
downloadrtems-9d9b6b56d1ecf0d8918556835fa0f83289140791.tar.bz2
score: Objects_Thread_queue_Extract_callout
Change parameters of the objects thread queue extract callout to avoid a cast and explicit use of the thread wait information.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r--cpukit/rtems/include/rtems/rtems/msgmp.h3
-rw-r--r--cpukit/rtems/include/rtems/rtems/partmp.h3
-rw-r--r--cpukit/rtems/include/rtems/rtems/regionmp.h3
-rw-r--r--cpukit/rtems/include/rtems/rtems/semmp.h3
-rw-r--r--cpukit/rtems/src/msgmp.c7
-rw-r--r--cpukit/rtems/src/partmp.c7
-rw-r--r--cpukit/rtems/src/regionmp.c7
-rw-r--r--cpukit/rtems/src/semmp.c7
8 files changed, 20 insertions, 20 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/msgmp.h b/cpukit/rtems/include/rtems/rtems/msgmp.h
index 3c2b450f34..f3c31f23fb 100644
--- a/cpukit/rtems/include/rtems/rtems/msgmp.h
+++ b/cpukit/rtems/include/rtems/rtems/msgmp.h
@@ -163,7 +163,8 @@ void _Message_queue_MP_Send_object_was_deleted (
* the remote node must be informed of this.
*/
void _Message_queue_MP_Send_extract_proxy (
- void *argument
+ Thread_Control *the_thread,
+ Objects_Id id
);
/**
diff --git a/cpukit/rtems/include/rtems/rtems/partmp.h b/cpukit/rtems/include/rtems/rtems/partmp.h
index 0658a78b65..26af64e974 100644
--- a/cpukit/rtems/include/rtems/rtems/partmp.h
+++ b/cpukit/rtems/include/rtems/rtems/partmp.h
@@ -133,7 +133,8 @@ void _Partition_MP_Process_packet (
* the remote node must be informed of this.
*/
void _Partition_MP_Send_extract_proxy (
- void *argument
+ Thread_Control *the_thread,
+ Objects_Id id
);
/**
diff --git a/cpukit/rtems/include/rtems/rtems/regionmp.h b/cpukit/rtems/include/rtems/rtems/regionmp.h
index 2b265f2a5f..67685305ad 100644
--- a/cpukit/rtems/include/rtems/rtems/regionmp.h
+++ b/cpukit/rtems/include/rtems/rtems/regionmp.h
@@ -138,7 +138,8 @@ void _Region_MP_Process_packet (
* the remote node must be informed of this.
*/
void _Region_MP_Send_extract_proxy (
- void *argument
+ Thread_Control *the_thread,
+ Objects_Id id
);
/**
diff --git a/cpukit/rtems/include/rtems/rtems/semmp.h b/cpukit/rtems/include/rtems/rtems/semmp.h
index 9fd6c74a5a..9c9a1e653d 100644
--- a/cpukit/rtems/include/rtems/rtems/semmp.h
+++ b/cpukit/rtems/include/rtems/rtems/semmp.h
@@ -132,7 +132,8 @@ void _Semaphore_MP_Send_object_was_deleted (
* the remote node must be informed of this.
*/
void _Semaphore_MP_Send_extract_proxy (
- void *argument
+ Thread_Control *the_thread,
+ Objects_Id id
);
/**
diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c
index 74b240cb21..53077c4863 100644
--- a/cpukit/rtems/src/msgmp.c
+++ b/cpukit/rtems/src/msgmp.c
@@ -453,14 +453,13 @@ void _Message_queue_MP_Send_object_was_deleted (
*/
void _Message_queue_MP_Send_extract_proxy (
- void *argument
+ Thread_Control *the_thread,
+ Objects_Id id
)
{
- Thread_Control *the_thread = (Thread_Control *)argument;
-
_Message_queue_MP_Send_process_packet(
MESSAGE_QUEUE_MP_EXTRACT_PROXY,
- the_thread->Wait.id,
+ id,
(rtems_name) 0,
the_thread->Object.id
);
diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c
index 00fc8101fb..8e9d307825 100644
--- a/cpukit/rtems/src/partmp.c
+++ b/cpukit/rtems/src/partmp.c
@@ -275,14 +275,13 @@ void _Partition_MP_Process_packet (
*/
void _Partition_MP_Send_extract_proxy (
- void *argument
+ Thread_Control *the_thread,
+ Objects_Id id
)
{
- Thread_Control *the_thread = (Thread_Control *)argument;
-
_Partition_MP_Send_process_packet(
PARTITION_MP_EXTRACT_PROXY,
- the_thread->Wait.id,
+ id,
(rtems_name) 0,
the_thread->Object.id
);
diff --git a/cpukit/rtems/src/regionmp.c b/cpukit/rtems/src/regionmp.c
index bd4e04fcf6..bcdec6bef7 100644
--- a/cpukit/rtems/src/regionmp.c
+++ b/cpukit/rtems/src/regionmp.c
@@ -259,14 +259,13 @@ void _Region_MP_Process_packet (
*/
void _Region_MP_Send_extract_proxy (
- void *argument
+ Thread_Control *the_thread,
+ Objects_Id id
)
{
- Thread_Control *the_thread = (Thread_Control *)argument;
-
_Region_MP_Send_process_packet(
REGION_MP_EXTRACT_PROXY,
- the_thread->Wait.id,
+ id,
(rtems_name) 0,
the_thread->Object.id
);
diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c
index 66b74ad57b..90432c1738 100644
--- a/cpukit/rtems/src/semmp.c
+++ b/cpukit/rtems/src/semmp.c
@@ -247,14 +247,13 @@ void _Semaphore_MP_Send_object_was_deleted (
}
void _Semaphore_MP_Send_extract_proxy (
- void *argument
+ Thread_Control *the_thread,
+ Objects_Id id
)
{
- Thread_Control *the_thread = (Thread_Control *)argument;
-
_Semaphore_MP_Send_process_packet(
SEMAPHORE_MP_EXTRACT_PROXY,
- the_thread->Wait.id,
+ id,
(rtems_name) 0,
the_thread->Object.id
);