listSET_LIST_ITEM_VALUE(&(pxTCB->xEventListItem),(TickType_t)configMAX_PRIORITIES-(TickType_t)pxTCB->uxPriority);/*lint !e961 MISRA exception as the casts are only redundant for some ports. */
/* Only reset the event list item value if the value is not
listSET_LIST_ITEM_VALUE(&(pxTCB->xEventListItem),(TickType_t)configMAX_PRIORITIES-(TickType_t)pxTCB->uxPriority);/*lint !e961 MISRA exception as the casts are only redundant for some ports. */
}
else
{
#warning Is it possible to come through here?
mtCOVERAGE_TEST_MARKER();
}
prvAddTaskToReadyList(pxTCB);
/* Return true to indicate that a context switch is required.
Thisisonlyactuallyrequiredinthecornercasewhereby
multiplemutexeswereheldandthemutexesweregivenback
inanorderdifferenttothatinwhichtheyweretaken.*/
xReturn=pdTRUE;
}
else
{
mtCOVERAGE_TEST_MARKER();
}
prvAddTaskToReadyList(pxTCB);
}
else
{
@ -3280,6 +3298,8 @@ TCB_t *pxTCB;
{
mtCOVERAGE_TEST_MARKER();
}
returnxReturn;
}
#endif /* configUSE_MUTEXES */
@ -3294,6 +3314,18 @@ TCB_t *pxTCB;
if(xSchedulerRunning!=pdFALSE)
{
(pxCurrentTCB->uxCriticalNesting)++;
/* This is not the interrupt safe version of the enter critical