MCPcopy Create free account
hub / github.com/FreeRTOS/FreeRTOS-Kernel / prvResetNextTaskUnblockTime

Function prvResetNextTaskUnblockTime

tasks.c:4890–4908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4888/*-----------------------------------------------------------*/
4889
4890static 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 ) )

Callers 7

tasks.cFile · 0.85
vTaskDeleteFunction · 0.85
vTaskSuspendFunction · 0.85
xTaskResumeAllFunction · 0.85
xTaskRemoveFromEventListFunction · 0.85
xTaskGenericNotifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected