Fix: RoundRobin in task with same priority when configUSE_TIME_SLICE = 0

This commit is contained in:
Doug Nóbrega 2020-10-16 11:59:01 -03:00
parent 5fb26de019
commit ec3d62ccd0

View file

@ -281,7 +281,9 @@ typedef struct xLIST
List_t * const pxConstList = ( pxList ); \
/* Increment the index to the next item and return the item, ensuring */ \
/* we don't return the marker used at the end of the list. */ \
( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \
if (configUSE_TIME_SLICING == 1){ \
( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \
} \
if( ( void * ) ( pxConstList )->pxIndex == ( void * ) &( ( pxConstList )->xListEnd ) ) \
{ \
( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \