Changeset 1b7a6a3 in rtems


Ignore:
Timestamp:
Apr 29, 2016, 8:28:31 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
88e09b98
Parents:
99112f7
git-author:
Sebastian Huber <sebastian.huber@…> (04/29/16 08:28:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/02/16 05:46:14)
Message:

score: _CORE_message_queue_Set_message_priority()

Remove _CORE_message_queue_Set_message_priority() and set the priority
in _CORE_message_queue_Insert_message().

Location:
cpukit/score
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/coremsgimpl.h

    r99112f7 r1b7a6a3  
    581581
    582582/**
    583  * This function sets the priority of @a the_message.
    584  *
    585  * @note It encapsulates the optional behavior that message priority is
    586  *       disabled if no API requires it.
    587  */
    588 RTEMS_INLINE_ROUTINE void _CORE_message_queue_Set_message_priority (
    589   CORE_message_queue_Buffer_control *the_message,
    590   int                                priority
    591 )
    592 {
    593   #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
    594     the_message->priority = priority;
    595   #endif
    596 }
    597 
    598 /**
    599583 * This function removes the first message from the_message_queue
    600584 * and returns a pointer to it.
  • cpukit/score/src/coremsginsert.c

    r99112f7 r1b7a6a3  
    4949#endif
    5050
    51   _CORE_message_queue_Set_message_priority( the_message, submit_type );
     51#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
     52  the_message->priority = submit_type;
     53#endif
     54
    5255  pending_messages = &the_message_queue->Pending_messages;
    5356
  • cpukit/score/src/coremsgseize.c

    r99112f7 r1b7a6a3  
    9191       *  waiting task.
    9292       */
    93       _CORE_message_queue_Set_message_priority(
    94         the_message,
    95         the_thread->Wait.count
    96       );
    9793      the_message->Contents.size = (size_t) the_thread->Wait.option;
    9894      _CORE_message_queue_Copy_buffer(
     
    10197        the_message->Contents.size
    10298      );
    103 
    10499      _CORE_message_queue_Insert_message(
    105          the_message_queue,
    106          the_message,
    107          _CORE_message_queue_Get_message_priority( the_message )
     100        the_message_queue,
     101        the_message,
     102        the_thread->Wait.count
    108103      );
    109104      _Thread_queue_Extract_critical(
  • cpukit/score/src/coremsgsubmit.c

    r99112f7 r1b7a6a3  
    7474  if ( the_message ) {
    7575    the_message->Contents.size = size;
    76     _CORE_message_queue_Set_message_priority( the_message, submit_type );
    7776    _CORE_message_queue_Copy_buffer(
    7877      buffer,
     
    8079      size
    8180    );
    82 
    8381    _CORE_message_queue_Insert_message(
    8482       the_message_queue,
Note: See TracChangeset for help on using the changeset viewer.