Changeset a781bbff in rtems


Ignore:
Timestamp:
Aug 9, 2001, 8:48:20 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
02e4dcd
Parents:
33c31af7
Message:

2001-08-09 Joel Sherrill <joel@…>

  • src/mqueuesendsupp.c: Unblocking message queue operations should NOT use _Thread_Executing for return status since it is permissible to invoke message send operations from an ISR. This was reported by Suvrat Gupta <suvrat@…>.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/ChangeLog

    r33c31af7 ra781bbff  
     12001-08-09      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/mqueuesendsupp.c: Unblocking message queue operations should
     4        NOT use _Thread_Executing for return status since it is permissible
     5        to invoke message send operations from an ISR.  This was reported
     6        by Suvrat Gupta <suvrat@utstar.com>.
     7
    182000-05-24      Fernando Ruiz Casas <fernando.ruiz@ctv.es>
    29
  • c/src/exec/posix/src/mqueuesendsupp.c

    r33c31af7 ra781bbff  
    4949  register POSIX_Message_queue_Control *the_mq;
    5050  Objects_Locations                     location;
     51  CORE_message_queue_Status             msg_status;
    5152
    5253  /*
     
    7576      }
    7677
    77       _CORE_message_queue_Submit(
     78      msg_status = _CORE_message_queue_Submit(
    7879        &the_mq->Message_queue,
    7980        (void *) msg_ptr,
     
    9192
    9293      _Thread_Enable_dispatch();
    93       if ( !_Thread_Executing->Wait.return_code )
     94      if ( !msg_status )
    9495        return 0;
    9596
    9697      set_errno_and_return_minus_one(
    9798        _POSIX_Message_queue_Translate_core_message_queue_return_code(
    98           _Thread_Executing->Wait.return_code
     99          msg_status
    99100        )
    100101      );
  • cpukit/posix/ChangeLog

    r33c31af7 ra781bbff  
     12001-08-09      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/mqueuesendsupp.c: Unblocking message queue operations should
     4        NOT use _Thread_Executing for return status since it is permissible
     5        to invoke message send operations from an ISR.  This was reported
     6        by Suvrat Gupta <suvrat@utstar.com>.
     7
    182000-05-24      Fernando Ruiz Casas <fernando.ruiz@ctv.es>
    29
  • cpukit/posix/src/mqueuesendsupp.c

    r33c31af7 ra781bbff  
    4949  register POSIX_Message_queue_Control *the_mq;
    5050  Objects_Locations                     location;
     51  CORE_message_queue_Status             msg_status;
    5152
    5253  /*
     
    7576      }
    7677
    77       _CORE_message_queue_Submit(
     78      msg_status = _CORE_message_queue_Submit(
    7879        &the_mq->Message_queue,
    7980        (void *) msg_ptr,
     
    9192
    9293      _Thread_Enable_dispatch();
    93       if ( !_Thread_Executing->Wait.return_code )
     94      if ( !msg_status )
    9495        return 0;
    9596
    9697      set_errno_and_return_minus_one(
    9798        _POSIX_Message_queue_Translate_core_message_queue_return_code(
    98           _Thread_Executing->Wait.return_code
     99          msg_status
    99100        )
    100101      );
Note: See TracChangeset for help on using the changeset viewer.