summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/msgmp.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-18 15:05:37 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 16:56:58 +0200
commit993a888dfde91cadbc723344035805ef770c8894 (patch)
tree97a819df192fdc3ec9f9fb9f86a02f1d22e870aa /cpukit/rtems/include/rtems/rtems/msgmp.h
parentscore: Avoid direct usage of _Thread_Executing (diff)
downloadrtems-993a888dfde91cadbc723344035805ef770c8894.tar.bz2
rtems: Create message queue implementation header
Move implementation specific parts of message.h and message.inl into new header file messageimpl.h. The message.h contains now only the application visible API.
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/msgmp.h')
-rw-r--r--cpukit/rtems/include/rtems/rtems/msgmp.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/msgmp.h b/cpukit/rtems/include/rtems/rtems/msgmp.h
index f01a687ae3..ddb21b2781 100644
--- a/cpukit/rtems/include/rtems/rtems/msgmp.h
+++ b/cpukit/rtems/include/rtems/rtems/msgmp.h
@@ -18,17 +18,19 @@
#ifndef _RTEMS_RTEMS_MSGMP_H
#define _RTEMS_RTEMS_MSGMP_H
-#ifdef __cplusplus
-extern "C" {
+#ifndef _RTEMS_RTEMS_MESSAGEIMPL_H
+# error "Never use <rtems/rtems/msgmp.h> directly; include <rtems/rtems/messageimpl.h> instead."
#endif
-#include <rtems/rtems/message.h>
+#include <rtems/rtems/messageimpl.h>
#include <rtems/score/mppkt.h>
-#include <rtems/score/object.h>
-#include <rtems/rtems/options.h>
#include <rtems/score/thread.h>
#include <rtems/score/watchdog.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @defgroup ClassicMsgMP Message Queue MP Support
*
@@ -80,6 +82,20 @@ typedef struct {
offsetof(Message_queue_MP_Packet, Buffer.buffer)
/**
+ * @brief Message_queue_Core_message_queue_mp_support
+ *
+ * Input parameters:
+ * the_thread - the remote thread the message was submitted to
+ * id - id of the message queue
+ *
+ * Output parameters: NONE
+ */
+void _Message_queue_Core_message_queue_mp_support (
+ Thread_Control *the_thread,
+ rtems_id id
+);
+
+/**
* @brief _Message_queue_MP_Send_process_packet
*
* This routine performs a remote procedure call so that a
@@ -159,11 +175,11 @@ void _Message_queue_MP_Send_extract_proxy (
*/
Message_queue_MP_Packet *_Message_queue_MP_Get_packet ( void );
+/**@}*/
+
#ifdef __cplusplus
}
#endif
-/**@}*/
-
#endif
/* end of file */