From 2bbe78a24927567bfe6bfbde292ce500486fcfc8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 1 Sep 2005 16:32:06 +0000 Subject: 2005-09-01 Joel Sherrill PR 820/rtems * score/inline/rtems/score/coremsg.inl, score/macros/rtems/score/coremsg.inl, score/src/coremsginsert.c: Increment of pending message count should be atomic with insertion on the pending message chain. Determination of the need to call the notification handler should also be in this atomic section of code. --- cpukit/score/macros/rtems/score/coremsg.inl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cpukit/score/macros/rtems') diff --git a/cpukit/score/macros/rtems/score/coremsg.inl b/cpukit/score/macros/rtems/score/coremsg.inl index 5befe419a9..4a7e3652ef 100644 --- a/cpukit/score/macros/rtems/score/coremsg.inl +++ b/cpukit/score/macros/rtems/score/coremsg.inl @@ -97,8 +97,9 @@ * */ -#define _CORE_message_queue_Append( _the_message_queue, _the_message ) \ - _Chain_Append( &(_the_message_queue)->Pending_messages, \ +#define _CORE_message_queue_Append_unprotected( \ + _the_message_queue, _the_message ) \ + _Chain_Append_unprotected( &(_the_message_queue)->Pending_messages, \ &(_the_message)->Node ) /*PAGE @@ -107,8 +108,9 @@ * */ -#define _CORE_message_queue_Prepend( _the_message_queue, _the_message ) \ - _Chain_Prepend( &(_the_message_queue)->Pending_messages, \ +#define _CORE_message_queue_Prepend_unprotected( \ + _the_message_queue, _the_message ) \ + _Chain_Prepend_unprotected( &(_the_message_queue)->Pending_messages, \ &(_the_message)->Node ) /*PAGE -- cgit v1.2.3