From: richardbarry Date: Tue, 16 Apr 2013 10:25:33 +0000 (+0000) Subject: Remove infinite loop from task delete function. X-Git-Tag: V7.4.1~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=146007949a134457f208f7efa1d49ff78d9944ce;p=freertos Remove infinite loop from task delete function. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1855 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/FreeRTOS/Source/tasks.c b/FreeRTOS/Source/tasks.c index ef92565c2..e27a20a50 100644 --- a/FreeRTOS/Source/tasks.c +++ b/FreeRTOS/Source/tasks.c @@ -709,14 +709,6 @@ tskTCB * pxNewTCB; if( ( void * ) xTaskToDelete == NULL ) { 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. */ - } } } }