Update INFINITE_LOOP control (#775)

* Use for loop instead of while loop for INFINITE_LOOP control
This commit is contained in:
chinglee-iot 2023-09-04 18:10:36 +08:00 committed by GitHub
parent 80a390cbbb
commit 1aaa318f1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5118,7 +5118,7 @@ void vTaskMissedYield( void )
taskYIELD(); taskYIELD();
while( INFINITE_LOOP() ) for( ; INFINITE_LOOP(); )
{ {
#if ( configUSE_PREEMPTION == 0 ) #if ( configUSE_PREEMPTION == 0 )
{ {
@ -5203,7 +5203,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
} }
#endif /* #if ( configNUMBER_OF_CORES > 1 ) */ #endif /* #if ( configNUMBER_OF_CORES > 1 ) */
while( INFINITE_LOOP() ) for( ; INFINITE_LOOP(); )
{ {
/* See if any tasks have deleted themselves - if so then the idle task /* See if any tasks have deleted themselves - if so then the idle task
* is responsible for freeing the deleted task's TCB and stack. */ * is responsible for freeing the deleted task's TCB and stack. */