]> git.sur5r.net Git - freertos/blobdiff - Source/tasks.c
Add an option for 8 byte alignment.
[freertos] / Source / tasks.c
index 3b699035543e16e8927423c4e175ae82fb53a81b..f4a7f35c7f3cd07777a95a732dac4e77bcde340b 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-       FreeRTOS.org V4.1.2 - Copyright (C) 2003-2006 Richard Barry.\r
+       FreeRTOS.org V4.2.0 - Copyright (C) 2003-2007 Richard Barry.\r
 \r
        This file is part of the FreeRTOS.org distribution.\r
 \r
@@ -184,9 +184,15 @@ Changes from V4.0.5
 \r
 Changes from V4.1.2\r
        \r
-       + Tasks that block with a timeout of portMAX_DELAY are now blocked \r
-         indefinitely.  Previously portMAX_DELAY was just the longest block time\r
-         possible.\r
+       + Tasks that block on events with a timeout of portMAX_DELAY are now\r
+         blocked indefinitely if configINCLUDE_vTaskSuspend is defined. \r
+         Previously portMAX_DELAY was just the longest block time possible.\r
+\r
+Changes from V4.1.3\r
+\r
+       + Very small change made to xTaskCheckForTimeout() as a result of the \r
+       SafeRTOS testing.  This corrects the case where the function can return an\r
+       invalid value - but only in an extremely unlikely scenario.\r
 */\r
 \r
 #include <stdio.h>\r
@@ -1540,7 +1546,7 @@ portBASE_TYPE xTaskCheckForTimeOut( xTimeOutType *pxTimeOut, portTickType *pxTic
 {\r
 portBASE_TYPE xReturn;\r
 \r
-    if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xTickCount > pxTimeOut->xTimeOnEntering ) )\r
+    if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xTickCount >= pxTimeOut->xTimeOnEntering ) )\r
     {\r
         /* The tick count is greater than the time at which vTaskSetTimeout() \r
                was called, but has also overflowed since vTaskSetTimeOut() was called.\r