mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-24 19:59:31 +08:00
Update pxMutexHolder is NULL check description (#800)
This commit is contained in:
5
tasks.c
5
tasks.c
@@ -6186,9 +6186,8 @@ static void prvResetNextTaskUnblockTime( void )
|
|||||||
|
|
||||||
traceENTER_xTaskPriorityInherit( pxMutexHolder );
|
traceENTER_xTaskPriorityInherit( pxMutexHolder );
|
||||||
|
|
||||||
/* If the mutex was given back by an interrupt while the queue was
|
/* If the mutex is taken by an interrupt, the mutex holder is NULL. Priority
|
||||||
* locked then the mutex holder might now be NULL. _RB_ Is this still
|
* inheritance is not applied in this scenario. */
|
||||||
* needed as interrupts can no longer use mutexes? */
|
|
||||||
if( pxMutexHolder != NULL )
|
if( pxMutexHolder != NULL )
|
||||||
{
|
{
|
||||||
/* If the holder of the mutex has a priority below the priority of
|
/* If the holder of the mutex has a priority below the priority of
|
||||||
|
|||||||
Reference in New Issue
Block a user