Update tasks.c

This is the same question as a PR I used to make.
This commit is contained in:
WineQ圈9 2020-03-14 14:30:21 +08:00 committed by GitHub
parent 9b02ee0af2
commit 4dd4540cb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4133,10 +4133,10 @@ TCB_t *pxTCB;
the mutex. If the mutex is held by a task then it cannot be the mutex. If the mutex is held by a task then it cannot be
given from an interrupt, and if a mutex is given by the given from an interrupt, and if a mutex is given by the
holding task then it must be the running state task. Remove holding task then it must be the running state task. Remove
the holding task from the ready/delayed list. */ the holding task from the ready list. */
if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
{ {
taskRESET_READY_PRIORITY( pxTCB->uxPriority ); portRESET_READY_PRIORITY( pxTCB->uxPriority );
} }
else else
{ {