mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-07 13:45:00 -05:00
Remove temp variable for uxCurrentNumberOfTasks
Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com>
This commit is contained in:
parent
69b6e18d5b
commit
53b05de491
1 changed files with 1 additions and 2 deletions
3
tasks.c
3
tasks.c
|
|
@ -3192,9 +3192,8 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
|
|||
/* Use temp variable as distinct sequence points for reading
|
||||
* volatile variables prior to a comparison, per the coding guidelines */
|
||||
UBaseType_t uxCurrentListLength = listCURRENT_LIST_LENGTH( &xSuspendedTaskList );
|
||||
UBaseType_t uxCurrentNumOfTasks = uxCurrentNumberOfTasks;
|
||||
|
||||
if( uxCurrentListLength == uxCurrentNumOfTasks )
|
||||
if( uxCurrentListLength == uxCurrentNumberOfTasks )
|
||||
{
|
||||
/* No other tasks are ready, so set pxCurrentTCB back to
|
||||
* NULL so when the next task is created pxCurrentTCB will
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue