From d1e0919dc25af18738b82ecc81b7eebbd196f64d Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 18 Apr 2024 12:21:26 +0000 Subject: [PATCH] Fix format --- tasks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks.c b/tasks.c index 936bbd222..49c75a42d 100644 --- a/tasks.c +++ b/tasks.c @@ -881,6 +881,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION; configASSERT( portGET_CRITICAL_NESTING_COUNT() > 0U ); #if ( configRUN_MULTIPLE_PRIORITIES == 0 ) + /* No task should yield for this one if it is a lower priority * than priority level of currently ready tasks. */ if( pxTCB->uxPriority >= uxTopReadyPriority ) @@ -3359,10 +3360,12 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, configASSERT( xTaskToResume ); #if ( configNUMBER_OF_CORES == 1 ) + /* The parameter cannot be NULL as it is impossible to resume the * currently executing task. */ if( ( pxTCB != pxCurrentTCB ) && ( pxTCB != NULL ) ) #else + /* The parameter cannot be NULL as it is impossible to resume the * currently executing task. It is also impossible to resume a task * that is actively running on another core but it is not safe