Update tasks.c

Why don't get xNextTaskUnblockTime directly in this way?
This commit is contained in:
WineQ圈9 2020-03-12 15:50:12 +08:00 committed by GitHub
parent 8e3cf978c4
commit 80c5300bba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3964,8 +3964,7 @@ TCB_t *pxTCB;
the item at the head of the delayed list. This is the time at the item at the head of the delayed list. This is the time at
which the task at the head of the delayed list should be removed which the task at the head of the delayed list should be removed
from the Blocked state. */ from the Blocked state. */
( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ xNextTaskUnblockTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxDelayedTaskList );
xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
} }
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/