2001-08-16 Joel Sherrill <joel@OARcorp.com>

* include/rtems/score/coremsg.h, src/coremsgsubmit.c: Add a new
	return status to account for blocking sends.  Otherwise, the
	caller will think that the returned message status will have
	the ultimate results of the operation.  If the send times out,
	the final status will be in the return_code of the thread.
This commit is contained in:
Joel Sherrill
2001-08-16 19:35:08 +00:00
parent f879de5247
commit 7d74141380
6 changed files with 22 additions and 4 deletions

View File

@@ -1,4 +1,12 @@
2001-08-16 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/coremsg.h, src/coremsgsubmit.c: Add a new
return status to account for blocking sends. Otherwise, the
caller will think that the returned message status will have
the ultimate results of the operation. If the send times out,
the final status will be in the return_code of the thread.
2001-08-09 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/coremsg.h, inline/rtems/score/coremsg.inl,

View File

@@ -95,7 +95,8 @@ typedef enum {
CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED,
CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT,
CORE_MESSAGE_QUEUE_STATUS_WAS_DELETED,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT,
CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT
} CORE_message_queue_Status;
/*

View File

@@ -171,5 +171,5 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
}

View File

@@ -1,4 +1,12 @@
2001-08-16 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/coremsg.h, src/coremsgsubmit.c: Add a new
return status to account for blocking sends. Otherwise, the
caller will think that the returned message status will have
the ultimate results of the operation. If the send times out,
the final status will be in the return_code of the thread.
2001-08-09 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/coremsg.h, inline/rtems/score/coremsg.inl,

View File

@@ -95,7 +95,8 @@ typedef enum {
CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED,
CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT,
CORE_MESSAGE_QUEUE_STATUS_WAS_DELETED,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT,
CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT
} CORE_message_queue_Status;
/*

View File

@@ -171,5 +171,5 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
}