X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Source%2Flist.c;h=503c320dad14cfe34589d4fe86cd503288664e83;hb=b4e65a09bd461d9ee361a1f6e0a326b55d7faae8;hp=e5ca6aa6dddf7339b81f3366ef5f214626dbc8cf;hpb=17ae772ac12990f13d70e2b6cf3e0963104fae46;p=freertos diff --git a/Source/list.c b/Source/list.c index e5ca6aa6d..503c320da 100644 --- a/Source/list.c +++ b/Source/list.c @@ -1,5 +1,5 @@ /* - FreeRTOS.org V4.0.2 - Copyright (C) 2003-2006 Richard Barry. + FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry. This file is part of the FreeRTOS.org distribution. @@ -27,6 +27,9 @@ See http://www.FreeRTOS.org for documentation, latest information, license and contact details. Please ensure to read the configuration and relevant port sections of the online documentation. + + Also see http://www.SafeRTOS.com for an IEC 61508 compliant version along + with commercial development and support options. *************************************************************************** */ @@ -71,6 +74,11 @@ Changes from V3.2.4 + Changed the volatile definitions of some structure members to clean up the code where the list structures are used. + +Changes from V4.0.4 + + + Optimised vListInsert() in the case when the wake time is the maximum + tick count value. */ #include @@ -148,11 +156,7 @@ portTickType xValueOfInsertion; algorithm slightly if necessary. */ if( xValueOfInsertion == portMAX_DELAY ) { - for( pxIterator = ( xListItem * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue < xValueOfInsertion; pxIterator = pxIterator->pxNext ) - { - /* There is nothing to do here, we are just iterating to the - wanted insertion position. */ - } + pxIterator = pxList->xListEnd.pxPrevious; } else {