| 4888 | /*-----------------------------------------------------------*/ |
| 4889 | |
| 4890 | static void prvResetNextTaskUnblockTime( void ) |
| 4891 | { |
| 4892 | if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) |
| 4893 | { |
| 4894 | /* The new current delayed list is empty. Set xNextTaskUnblockTime to |
| 4895 | * the maximum possible value so it is extremely unlikely that the |
| 4896 | * if( xTickCount >= xNextTaskUnblockTime ) test will pass until |
| 4897 | * there is an item in the delayed list. */ |
| 4898 | xNextTaskUnblockTime = portMAX_DELAY; |
| 4899 | } |
| 4900 | else |
| 4901 | { |
| 4902 | /* The new current delayed list is not empty, get the value of |
| 4903 | * the item at the head of the delayed list. This is the time at |
| 4904 | * which the task at the head of the delayed list should be removed |
| 4905 | * from the Blocked state. */ |
| 4906 | xNextTaskUnblockTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxDelayedTaskList ); |
| 4907 | } |
| 4908 | } |
| 4909 | /*-----------------------------------------------------------*/ |
| 4910 | |
| 4911 | #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) ) |
no outgoing calls
no test coverage detected