Skip to content

Update unpaired critical section in vTaskDelete for readability #958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update for format
  • Loading branch information
chinglee-iot committed Jan 23, 2024
commit 216ea3915caed42b5baaf6735a34d6f1a13fa7cd
5 changes: 3 additions & 2 deletions tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2300,8 +2300,9 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
}
#else /* #if ( configNUMBER_OF_CORES == 1 ) */
{
/* It is important to use critical section here because checking
* run state of a task must be done inside a 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