Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-josi-aws committed Jan 15, 2025
1 parent c67b59b commit da61bca
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -4719,6 +4719,14 @@ TickType_t uxTaskResetEventItemValue( void )
{
pvReturn = listGET_OWNER_OF_HEAD_ENTRY( ( &(pxTCB->xMutexesCurrentlyHeld) ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
vRemoveQueueItemFromList( pvReturn );
if(( listLIST_IS_EMPTY( &(pxTCB->xMutexesCurrentlyHeld) ) == pdFALSE))
{
pvReturn = listGET_OWNER_OF_HEAD_ENTRY( ( &(pxTCB->xMutexesCurrentlyHeld) ) );
}
else
{
pvReturn = NULL;
}
}

return pvReturn;
Expand Down Expand Up @@ -4779,6 +4787,7 @@ TickType_t uxTaskResetEventItemValue( void )

pxTCB->uxPriority = uxNewPriority;

#if 0
#if ( configUSE_MUTEXES == 1 )
{
/* Only change the priority being used if the task is not
Expand All @@ -4800,7 +4809,7 @@ TickType_t uxTaskResetEventItemValue( void )
pxTCB->uxPriority = uxNewPriority;
}
#endif /* if ( configUSE_MUTEXES == 1 ) */

#endif
/* Only reset the event list item value if the value is not
* being used for anything else. */
if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
Expand Down

0 comments on commit da61bca

Please sign in to comment.