Skip to content

Commit

Permalink
Not preempt equal priority task in the following functions (FreeRTOS#56)
Browse files Browse the repository at this point in the history
Not to preempt equal priority task in the following functions
* vTaskResume
* vTaskResumeFromISR
* vTaskPrioritySet
* vTaskCoreAffinitySet
  • Loading branch information
chinglee-iot authored Jan 6, 2023
1 parent 87aa631 commit 57d201c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2517,7 +2517,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
}
else if( xYieldForTask != pdFALSE )
{
prvYieldForTask( pxTCB, pdTRUE );
prvYieldForTask( pxTCB, pdFALSE );
}
else
{
Expand Down Expand Up @@ -2584,7 +2584,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
* scheduled on any of those cores. */
if( ( uxPrevNotAllowedCores & uxCoreAffinityMask ) != 0U )
{
prvYieldForTask( pxTCB, pdTRUE );
prvYieldForTask( pxTCB, pdFALSE );
}
}
#else /* #if( configUSE_PREEMPTION == 1 ) */
Expand Down Expand Up @@ -2950,7 +2950,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
{
#if ( configUSE_PREEMPTION == 1 )
{
prvYieldForTask( pxTCB, pdTRUE );
prvYieldForTask( pxTCB, pdFALSE );
}
#endif /* #if ( configUSE_PREEMPTION == 1 ) */
}
Expand Down Expand Up @@ -3043,7 +3043,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,

#if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_PREEMPTION == 1 ) )
{
prvYieldForTask( pxTCB, pdTRUE );
prvYieldForTask( pxTCB, pdFALSE );

if( xYieldPendings[ portGET_CORE_ID() ] != pdFALSE )
{
Expand Down

0 comments on commit 57d201c

Please sign in to comment.