Changeset 5cc6bf4 in rtems


Ignore:
Timestamp:
Apr 17, 2016, 1:47:33 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e781ddb
Parents:
b33983f
git-author:
Sebastian Huber <sebastian.huber@…> (04/17/16 13:47:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/21/16 05:29:37)
Message:

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().

Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/mqueuedeletesupp.c

    rb33983f r5cc6bf4  
    6060      _CORE_message_queue_Close(
    6161        &the_mq->Message_queue,
    62         CORE_MESSAGE_QUEUE_STATUS_WAS_DELETED,
    6362        NULL,        /* no MP support */
    6463        0
  • cpukit/rtems/src/msgqdelete.c

    rb33983f r5cc6bf4  
    4848      _CORE_message_queue_Close(
    4949        &the_message_queue->message_queue,
    50         CORE_MESSAGE_QUEUE_STATUS_WAS_DELETED,
    5150        _Message_queue_MP_Send_object_was_deleted,
    5251        id
  • cpukit/score/include/rtems/score/coremsgimpl.h

    rb33983f r5cc6bf4  
    130130
    131131void _CORE_message_queue_Do_close(
    132   CORE_message_queue_Control *the_message_queue,
    133   uint32_t                    status
     132  CORE_message_queue_Control *the_message_queue
    134133#if defined(RTEMS_MULTIPROCESSING)
    135134  ,
     
    150149 *
    151150 *  @param[in] the_message_queue points to the message queue to close
    152  *  @param[in] status is the status that each waiting thread will return
    153  *         from it's blocking service
    154151 *  @param[in] mp_callout is the routine to call for each thread
    155152 *         that is extracted from the set of waiting threads
     
    159156  #define _CORE_message_queue_Close( \
    160157    the_message_queue, \
    161     status, \
    162158    mp_callout, \
    163159    mp_id \
     
    165161    _CORE_message_queue_Do_close( \
    166162      the_message_queue, \
    167       status, \
    168163      mp_callout, \
    169164      mp_id \
     
    172167  #define _CORE_message_queue_Close( \
    173168    the_message_queue, \
    174     status, \
    175169    mp_callout, \
    176170    mp_id \
    177171  ) \
    178172    _CORE_message_queue_Do_close( \
    179       the_message_queue, \
    180       status \
     173      the_message_queue \
    181174    )
    182175#endif
  • cpukit/score/src/coremsgclose.c

    rb33983f r5cc6bf4  
    2323
    2424void _CORE_message_queue_Do_close(
    25   CORE_message_queue_Control *the_message_queue,
    26   uint32_t                    status
     25  CORE_message_queue_Control *the_message_queue
    2726#if defined(RTEMS_MULTIPROCESSING)
    2827  ,
     
    4039    &the_message_queue->Wait_queue,
    4140    the_message_queue->operations,
    42     status,
     41    CORE_MESSAGE_QUEUE_STATUS_WAS_DELETED,
    4342    mp_callout,
    4443    mp_id
Note: See TracChangeset for help on using the changeset viewer.