mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Remove infinite loop from task delete function.
This commit is contained in:
parent
01202246da
commit
af023e8bf1
|
@ -709,14 +709,6 @@ tskTCB * pxNewTCB;
|
||||||
if( ( void * ) xTaskToDelete == NULL )
|
if( ( void * ) xTaskToDelete == NULL )
|
||||||
{
|
{
|
||||||
portYIELD_WITHIN_API();
|
portYIELD_WITHIN_API();
|
||||||
|
|
||||||
/* Ensure the task goes no further if it takes a few
|
|
||||||
instructions for the yield to occur. */
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
/* Nothing to do here, just ensuring the task does not
|
|
||||||
execute further before the yield has taken effect. */
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue