forked from Imagelibrary/rtems
2011-11-28 Werner Almesberger <werner@almesberger.net>
PR 1961/cpukit * score/src/coremsgsubmit.c: Close window caused by using message pending count rather than directly obtaining unused buffer.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2011-11-28 Werner Almesberger <werner@almesberger.net>
|
||||
|
||||
PR 1961/cpukit
|
||||
* score/src/coremsgsubmit.c: Close window caused by using message
|
||||
pending count rather than directly obtaining unused buffer.
|
||||
|
||||
2011-11-07 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
PR 1952/cpukit
|
||||
|
||||
@@ -102,21 +102,9 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
|
||||
* No one waiting on the message queue at this time, so attempt to
|
||||
* queue the message up for a future receive.
|
||||
*/
|
||||
if ( the_message_queue->number_of_pending_messages <
|
||||
the_message_queue->maximum_pending_messages ) {
|
||||
|
||||
the_message =
|
||||
_CORE_message_queue_Allocate_message_buffer( the_message_queue );
|
||||
|
||||
#if defined(RTEMS_DEBUG)
|
||||
/*
|
||||
* NOTE: If the system is consistent, this error should never occur.
|
||||
*/
|
||||
|
||||
if ( !the_message )
|
||||
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED;
|
||||
#endif
|
||||
|
||||
the_message =
|
||||
_CORE_message_queue_Allocate_message_buffer( the_message_queue );
|
||||
if ( the_message ) {
|
||||
_CORE_message_queue_Copy_buffer(
|
||||
buffer,
|
||||
the_message->Contents.buffer,
|
||||
|
||||
Reference in New Issue
Block a user