diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-09-01 16:32:06 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-09-01 16:32:06 +0000 |
commit | 2bbe78a24927567bfe6bfbde292ce500486fcfc8 (patch) | |
tree | 9043e4854cc3f41bffd33df63b61b67721e59e76 /cpukit/score/macros/rtems | |
parent | 2005-09-01 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-2bbe78a24927567bfe6bfbde292ce500486fcfc8.tar.bz2 |
2005-09-01 Joel Sherrill <joel@OARcorp.com>
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.
Diffstat (limited to 'cpukit/score/macros/rtems')
-rw-r--r-- | cpukit/score/macros/rtems/score/coremsg.inl | 10 |
1 files changed, 6 insertions, 4 deletions
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 |