From: richardbarry Date: Mon, 3 Jul 2006 19:39:42 +0000 (+0000) Subject: Change to xTaskResumeFromISR() function only. This function is untested. X-Git-Tag: V4.0.5~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d3659f9b5aedff37d7807bbdd445ac4956b518a;p=freertos Change to xTaskResumeFromISR() function only. This function is untested. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@19 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/tasks.c b/Source/tasks.c index 416342363..7f60f8dea 100644 --- a/Source/tasks.c +++ b/Source/tasks.c @@ -971,11 +971,16 @@ static unsigned portBASE_TYPE uxTaskNumber = 0; /*lint !e956 Static is deliberat else { /* We cannot access the delayed or ready lists, so will hold this - task pending until the scheduler is resumed. */ + task pending until the scheduler is resumed, at which point a + yield will be preformed if necessary. */ xYieldRequired = pdFALSE; vListInsertEnd( ( xList * ) &( xPendingReadyList ), &( pxTaskToResume->xEventListItem ) ); } } + else + { + xYieldRequired = pdFALSE; + } return xYieldRequired; }