mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Update INFINITE_LOOP control (#775)
* Use for loop instead of while loop for INFINITE_LOOP control
This commit is contained in:
parent
80a390cbbb
commit
1aaa318f1c
4
tasks.c
4
tasks.c
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue