summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/coremsgimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-17 15:47:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-21 07:29:37 +0200
commit5cc6bf4ce3319730a679b0e15a17a57a4cfb147b (patch)
tree5688bc132891fe06200e2f253e0d57ffde16da0f /cpukit/score/include/rtems/score/coremsgimpl.h
parentscore: Simplify _CORE_message_queue_Do_close() (diff)
downloadrtems-5cc6bf4ce3319730a679b0e15a17a57a4cfb147b.tar.bz2
score: Simplify _CORE_message_queue_Close()
Drop status parameter since each caller used CORE_MESSAGE_QUEUE_STATUS_WAS_DELETED. Remove superfluous _CORE_message_queue_Flush().
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/coremsgimpl.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/cpukit/score/include/rtems/score/coremsgimpl.h b/cpukit/score/include/rtems/score/coremsgimpl.h
index d7d5c468f6..98d97ddbdb 100644
--- a/cpukit/score/include/rtems/score/coremsgimpl.h
+++ b/cpukit/score/include/rtems/score/coremsgimpl.h
@@ -129,8 +129,7 @@ bool _CORE_message_queue_Initialize(
);
void _CORE_message_queue_Do_close(
- CORE_message_queue_Control *the_message_queue,
- uint32_t status
+ CORE_message_queue_Control *the_message_queue
#if defined(RTEMS_MULTIPROCESSING)
,
Thread_queue_MP_callout mp_callout,
@@ -149,8 +148,6 @@ void _CORE_message_queue_Do_close(
* flushing @a the_message_queue's task wait queue.
*
* @param[in] the_message_queue points to the message queue to close
- * @param[in] status is the status that each waiting thread will return
- * from it's blocking service
* @param[in] mp_callout is the routine to call for each thread
* that is extracted from the set of waiting threads
* @param[in] mp_id the object identifier of the message queue object
@@ -158,26 +155,22 @@ void _CORE_message_queue_Do_close(
#if defined(RTEMS_MULTIPROCESSING)
#define _CORE_message_queue_Close( \
the_message_queue, \
- status, \
mp_callout, \
mp_id \
) \
_CORE_message_queue_Do_close( \
the_message_queue, \
- status, \
mp_callout, \
mp_id \
)
#else
#define _CORE_message_queue_Close( \
the_message_queue, \
- status, \
mp_callout, \
mp_id \
) \
_CORE_message_queue_Do_close( \
- the_message_queue, \
- status \
+ the_message_queue \
)
#endif