Ignore:
Timestamp:
Sep 11, 2009, 8:00:30 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
5a6d25fc
Parents:
b094233
Message:

2009-09-11 Joel Sherrill <joel.sherrill@…>

  • score/include/rtems/score/coremsg.h, score/inline/rtems/score/coremsg.inl, score/src/coremsg.c, score/src/coremsginsert.c, score/src/coremsgseize.c, score/src/coremsgsubmit.c, score/src/objectnametoidstring.c: Disable the Core Message Queue features of notification, priority messages, and blocking sends when no API requires them.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/inline/rtems/score/coremsg.inl

    rb094233 r507d382  
    77
    88/*
    9  *  COPYRIGHT (c) 1989-2004.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    3434 *  This routine sends a message to the end of the specified message queue.
    3535 */
    36  
    3736RTEMS_INLINE_ROUTINE CORE_message_queue_Status _CORE_message_queue_Send(
    3837  CORE_message_queue_Control                *the_message_queue,
     
    6463 *  This routine sends a message to the front of the specified message queue.
    6564 */
    66  
    6765RTEMS_INLINE_ROUTINE CORE_message_queue_Status _CORE_message_queue_Urgent(
    6866  CORE_message_queue_Control                *the_message_queue,
     
    9593 *  to the destination message buffer.
    9694 */
    97 
    9895RTEMS_INLINE_ROUTINE void _CORE_message_queue_Copy_buffer (
    9996  const void *source,
     
    109106 *  message buffer chain.
    110107 */
    111 
    112108RTEMS_INLINE_ROUTINE CORE_message_queue_Buffer_control *
    113109_CORE_message_queue_Allocate_message_buffer (
     
    123119 *  message buffer chain.
    124120 */
    125 
    126121RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (
    127122    CORE_message_queue_Control        *the_message_queue,
     
    136131 *  and returns a pointer to it.
    137132 */
    138 
    139133RTEMS_INLINE_ROUTINE
    140134  CORE_message_queue_Buffer_control *_CORE_message_queue_Get_pending_message (
     
    150144 *  enabled in the attribute_set and false otherwise.
    151145 */
    152  
    153146RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_priority(
    154147  CORE_message_queue_Attributes *the_attribute
    155148)
    156149{
    157   return (the_attribute->discipline == CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY);
     150  return
     151    (the_attribute->discipline == CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY);
    158152}
    159153
     
    162156 *  messages on the_message_queue.
    163157 */
    164 
    165158RTEMS_INLINE_ROUTINE void _CORE_message_queue_Append_unprotected (
    166159  CORE_message_queue_Control        *the_message_queue,
     
    178171 *  messages on the_message_queue.
    179172 */
    180 
    181173RTEMS_INLINE_ROUTINE void _CORE_message_queue_Prepend_unprotected (
    182174  CORE_message_queue_Control        *the_message_queue,
     
    193185 *  This function returns true if the_message_queue is true and false otherwise.
    194186 */
    195 
    196187RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_null (
    197188  CORE_message_queue_Control *the_message_queue
     
    201192}
    202193
    203 /**
    204  *  This function returns true if notification is enabled on this message
    205  *  queue and false otherwise.
    206  */
    207  
    208 RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_notify_enabled (
    209   CORE_message_queue_Control *the_message_queue
    210 )
    211 {
    212   return (the_message_queue->notify_handler != NULL);
    213 }
    214  
    215 /**
    216  *  This routine initializes the notification information for the_message_queue.
    217  */
    218  
    219 RTEMS_INLINE_ROUTINE void _CORE_message_queue_Set_notify (
    220   CORE_message_queue_Control        *the_message_queue,
    221   CORE_message_queue_Notify_Handler  the_handler,
    222   void                              *the_argument
    223 )
    224 {
    225   the_message_queue->notify_handler  = the_handler;
    226   the_message_queue->notify_argument = the_argument;
    227 }
     194#if defined(RTEMS_SCORE_COREMSG_ENABLE_NOTIFICATION)
     195  /**
     196   *  This function returns true if notification is enabled on this message
     197   *  queue and false otherwise.
     198   */
     199  RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_notify_enabled (
     200    CORE_message_queue_Control *the_message_queue
     201  )
     202  {
     203    return (the_message_queue->notify_handler != NULL);
     204  }
     205 
     206  /**
     207   *  This routine initializes the notification information for
     208   *  @a the_message_queue.
     209   */
     210 
     211  RTEMS_INLINE_ROUTINE void _CORE_message_queue_Set_notify (
     212    CORE_message_queue_Control        *the_message_queue,
     213    CORE_message_queue_Notify_Handler  the_handler,
     214    void                              *the_argument
     215  )
     216  {
     217    the_message_queue->notify_handler  = the_handler;
     218    the_message_queue->notify_argument = the_argument;
     219  }
     220#endif
    228221
    229222/**@}*/
Note: See TracChangeset for help on using the changeset viewer.