mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-10 17:42:36 +00:00
Added the traceTAKE_MUTEX_RECURSIVE_FAILED() macro.
This commit is contained in:
@@ -288,6 +288,10 @@ typedef portBASE_TYPE (*pdTASK_HOOK_CODE)( void * );
|
|||||||
#define traceTAKE_MUTEX_RECURSIVE( pxMutex )
|
#define traceTAKE_MUTEX_RECURSIVE( pxMutex )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef traceTAKE_MUTEX_RECURSIVE_FAILED
|
||||||
|
#define traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex )
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef traceCREATE_COUNTING_SEMAPHORE
|
#ifndef traceCREATE_COUNTING_SEMAPHORE
|
||||||
#define traceCREATE_COUNTING_SEMAPHORE()
|
#define traceCREATE_COUNTING_SEMAPHORE()
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -415,6 +415,10 @@ size_t xQueueSizeInBytes;
|
|||||||
{
|
{
|
||||||
( pxMutex->uxRecursiveCallCount )++;
|
( pxMutex->uxRecursiveCallCount )++;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return xReturn;
|
return xReturn;
|
||||||
|
|||||||
Reference in New Issue
Block a user