summaryrefslogtreecommitdiffstats
path: root/cpukit/itron/src/tsnd_mbf.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-06-17 15:36:00 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-06-17 15:36:00 +0000
commit331d1f5097d449a9335a6de8f2c7b9e8e3da7f81 (patch)
tree1817d80876d11acb8d44c3fc3d51b14a8c1109f7 /cpukit/itron/src/tsnd_mbf.c
parent2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-331d1f5097d449a9335a6de8f2c7b9e8e3da7f81.tar.bz2
Remove (Abandoned).
Diffstat (limited to '')
-rw-r--r--cpukit/itron/src/tsnd_mbf.c92
1 files changed, 0 insertions, 92 deletions
diff --git a/cpukit/itron/src/tsnd_mbf.c b/cpukit/itron/src/tsnd_mbf.c
deleted file mode 100644
index c6df538572..0000000000
--- a/cpukit/itron/src/tsnd_mbf.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * ITRON Message Buffer Manager
- *
- * COPYRIGHT (c) 1989-2007.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <rtems/itron.h>
-
-#include <rtems/itron/msgbuffer.h>
-#include <rtems/itron/task.h>
-
-#include <assert.h> /* only for blocking */
-
-/*
- * tsnd_mbf - Send Message to MessageBuffer with Timeout
- */
-
-ER tsnd_mbf(
- ID mbfid,
- VP msg,
- INT msgsz,
- TMO tmout
-)
-{
- ITRON_Message_buffer_Control *the_message_buffer;
- Objects_Locations location;
- Watchdog_Interval interval;
- bool wait;
- CORE_message_queue_Status msg_status;
-
- if (msgsz <= 0 || !msg)
- return E_PAR;
-
- interval = 0;
- if ( tmout == TMO_POL ) {
- wait = false;
- } else {
- wait = true;
- if ( tmout != TMO_FEVR )
- interval = TOD_MILLISECONDS_TO_TICKS(tmout);
- }
-
- if ( wait && _ITRON_Is_in_non_task_state() )
- return E_CTX;
-
- the_message_buffer = _ITRON_Message_buffer_Get(mbfid, &location);
- switch (location) {
-#if defined(RTEMS_MULTIPROCESSING)
- case OBJECTS_REMOTE:
-#endif
- case OBJECTS_ERROR: /* Multiprocessing not supported */
- return _ITRON_Message_buffer_Clarify_get_id_error(mbfid);
-
- case OBJECTS_LOCAL:
- /* XXX Submit needs to take into account blocking */
- msg_status = _CORE_message_queue_Submit(
- &the_message_buffer->message_queue,
- msg,
- msgsz,
- the_message_buffer->Object.id,
- NULL,
- CORE_MESSAGE_QUEUE_SEND_REQUEST,
- wait, /* sender may block */
- interval /* timeout interval */
- );
- _Thread_Enable_dispatch();
- return _ITRON_Message_buffer_Translate_core_message_buffer_return_code(
- msg_status
- );
- }
-
- /*
- * If multiprocessing were supported, this is where we would announce
- * the existence of the semaphore to the rest of the system.
- */
-
-#if defined(RTEMS_MULTIPROCESSING)
-#endif
-
- return E_OK;
-}