Minor comment update

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
Gaurav Aggarwal 2024-01-23 08:05:18 +00:00
parent a31a9a7a7e
commit 6be9ad0c0e

View file

@ -2300,8 +2300,8 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
}
#else /* #if ( configNUMBER_OF_CORES == 1 ) */
{
/* Checking running state of a task needs to be performed in
* critical section. */
/* It is important to use critical section here because checking
* run state of a task must be done inside a critical section. */
taskENTER_CRITICAL();
{
if( taskTASK_IS_RUNNING( pxTCB ) == pdTRUE )