mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 01:28:32 -04:00
Update the queue peek behaviour and add QPeek test files.
This commit is contained in:
parent
5f16b0abca
commit
c77358491a
6 changed files with 588 additions and 92 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue