Comment: xTaskResumeAll: comment: doesn't match the code (#281)

This commit is contained in:
alfred gedeon 2021-03-19 10:36:17 -07:00 committed by GitHub
parent 95433d0284
commit 1059b35838
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2238,8 +2238,8 @@ BaseType_t xTaskResumeAll( void )
( void ) uxListRemove( &( pxTCB->xStateListItem ) ); ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
prvAddTaskToReadyList( pxTCB ); prvAddTaskToReadyList( pxTCB );
/* If the moved task has a priority higher than the current /* If the moved task has a priority higher than or equal to
* task then a yield must be performed. */ * the current task then a yield must be performed. */
if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
{ {
xYieldPending = pdTRUE; xYieldPending = pdTRUE;