From 5e9b32b439627068a0292370fe595220dbfc95a0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 26 Sep 1995 19:27:15 +0000 Subject: posix support initially added --- cpukit/score/macros/rtems/score/coremsg.inl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'cpukit/score/macros/rtems/score/coremsg.inl') diff --git a/cpukit/score/macros/rtems/score/coremsg.inl b/cpukit/score/macros/rtems/score/coremsg.inl index 877d737afd..d69c599d9f 100644 --- a/cpukit/score/macros/rtems/score/coremsg.inl +++ b/cpukit/score/macros/rtems/score/coremsg.inl @@ -117,5 +117,27 @@ _id, _api_message_queue_mp_support ) \ #define _CORE_message_queue_Is_null( _the_message_queue ) \ ( (_the_message_queue) == NULL ) +/*PAGE + * + * _CORE_message_queue_Is_notify_enabled + * + */ + +#define _CORE_message_queue_Is_notify_enabled( _the_message_queue ) \ + ( (_the_message_queue)->notify_handler != NULL ) + +/*PAGE + * + * _CORE_message_queue_Set_notify + * + */ + +#define _CORE_message_queue_Set_notify( \ + _the_message_queue, _the_handler, _the_argument ) \ + do { \ + (_the_message_queue->notify_handler = (_the_handler); \ + (_the_message_queue->notify_argument = (_the_argument); \ + } while ( 0 ) + #endif /* end of include file */ -- cgit v1.2.3