Update the queue peek behaviour and add QPeek test files.

This commit is contained in:
Richard Barry 2007-08-23 11:37:41 +00:00
parent 5f16b0abca
commit c77358491a
6 changed files with 588 additions and 92 deletions

View file

@ -610,7 +610,12 @@ signed portCHAR *pcOriginalReadPosition;
{
/* We are not removing the data, so reset our read
pointer. */
pxQueue->pcReadFrom = pcOriginalReadPosition;
pxQueue->pcReadFrom = pcOriginalReadPosition;
/* The data is being left in the queue, so increment the
lock count so prvUnlockQueue knows to check for other
tasks waiting for the data to be available. */
++( pxQueue->xTxLock );
}
xReturn = pdPASS;