mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-05 22:03:49 -04:00
MicroBlaze demo nearly working - death tasks not yet integrated - still a work in progress.
This commit is contained in:
parent
57653ee0ea
commit
cdac2c4f82
9 changed files with 48 additions and 19 deletions
|
@ -1529,8 +1529,15 @@ signed portBASE_TYPE xReturn;
|
|||
prvLockQueue( pxQueue );
|
||||
if( pxQueue->uxMessagesWaiting == ( unsigned portBASE_TYPE ) 0U )
|
||||
{
|
||||
/* There is nothing in the queue, block for the specified period. */
|
||||
vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
|
||||
/* There is nothing in the queue, block for the specified period,
|
||||
provided the period is not zero. This guards against the case
|
||||
where the time to wake is set to zero because there are no active
|
||||
timers, but the tick count value also happens to be zero - creating
|
||||
a block time of zero which confuses the logic. */
|
||||
if( 1 )//_RB_if( xTicksToWait != 0U ) //_RB_ This should not be needed as the scheduler is suspended so the tick count cannot increment.
|
||||
{
|
||||
vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
|
||||
}
|
||||
}
|
||||
prvUnlockQueue( pxQueue );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue