forked from Imagelibrary/rtems
2009-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/inline/rtems/score/coremsg.inl: Fix compilation issue when notifications are not enabled.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* score/inline/rtems/score/coremsg.inl: Fix compilation issue when
|
||||||
|
notifications are not enabled.
|
||||||
|
|
||||||
2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* score/include/rtems/score/thread.h, score/src/threadinitialize.c,
|
* score/include/rtems/score/thread.h, score/src/threadinitialize.c,
|
||||||
|
|||||||
@@ -154,7 +154,9 @@ RTEMS_INLINE_ROUTINE void _CORE_message_queue_Set_message_priority (
|
|||||||
int priority
|
int priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
the_message->priority = priority;
|
#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
|
||||||
|
the_message->priority = priority;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -239,17 +241,21 @@ RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_null (
|
|||||||
* This routine initializes the notification information for
|
* This routine initializes the notification information for
|
||||||
* @a the_message_queue.
|
* @a the_message_queue.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Set_notify (
|
|
||||||
CORE_message_queue_Control *the_message_queue,
|
|
||||||
CORE_message_queue_Notify_Handler the_handler,
|
|
||||||
void *the_argument
|
|
||||||
)
|
|
||||||
{
|
|
||||||
#if defined(RTEMS_SCORE_COREMSG_ENABLE_NOTIFICATION)
|
#if defined(RTEMS_SCORE_COREMSG_ENABLE_NOTIFICATION)
|
||||||
the_message_queue->notify_handler = the_handler;
|
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Set_notify (
|
||||||
the_message_queue->notify_argument = the_argument;
|
CORE_message_queue_Control *the_message_queue,
|
||||||
|
CORE_message_queue_Notify_Handler the_handler,
|
||||||
|
void *the_argument
|
||||||
|
)
|
||||||
|
{
|
||||||
|
the_message_queue->notify_handler = the_handler;
|
||||||
|
the_message_queue->notify_argument = the_argument;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
/* turn it into nothing if not enabled */
|
||||||
|
#define _CORE_message_queue_Set_notify( \
|
||||||
|
the_message_queue, the_handler, the_argument )
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user