Changeset 32aaaff in rtems


Ignore:
Timestamp:
Sep 13, 2009, 10:11:41 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
e7de563a
Parents:
41163687
Message:

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

  • score/inline/rtems/score/coremsg.inl: Fix compilation issue when notifications are not enabled.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r41163687 r32aaaff  
     12009-09-13      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/inline/rtems/score/coremsg.inl: Fix compilation issue when
     4        notifications are not enabled.
     5
    162009-09-13      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/score/inline/rtems/score/coremsg.inl

    r41163687 r32aaaff  
    155155)
    156156{
    157   the_message->priority = priority;
     157  #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
     158    the_message->priority = priority;
     159  #endif
    158160}
    159161
     
    235237  }
    236238#endif
    237  
     239
    238240/**
    239241 *  This routine initializes the notification information for
    240242 *  @a the_message_queue.
    241243 */
    242 RTEMS_INLINE_ROUTINE void _CORE_message_queue_Set_notify (
    243   CORE_message_queue_Control        *the_message_queue,
    244   CORE_message_queue_Notify_Handler  the_handler,
    245   void                              *the_argument
    246 )
    247 {
    248244#if defined(RTEMS_SCORE_COREMSG_ENABLE_NOTIFICATION)
    249   the_message_queue->notify_handler  = the_handler;
    250   the_message_queue->notify_argument = the_argument;
    251 #endif
    252 }
     245  RTEMS_INLINE_ROUTINE void _CORE_message_queue_Set_notify (
     246    CORE_message_queue_Control        *the_message_queue,
     247    CORE_message_queue_Notify_Handler  the_handler,
     248    void                              *the_argument
     249  )
     250  {
     251    the_message_queue->notify_handler  = the_handler;
     252    the_message_queue->notify_argument = the_argument;
     253  }
     254#else
     255  /* turn it into nothing if not enabled */
     256  #define _CORE_message_queue_Set_notify( \
     257           the_message_queue, the_handler, the_argument )
     258#endif
    253259
    254260/**@}*/
Note: See TracChangeset for help on using the changeset viewer.