Skip to content

Commit

Permalink
Minor comment update
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
  • Loading branch information
aggarg committed Jan 23, 2024
1 parent a31a9a7 commit 6be9ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 6be9ad0

Please sign in to comment.