mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-27 20:38:06 +08: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 )
|
||||
#endif
|
||||
|
||||
#ifndef traceTAKE_MUTEX_RECURSIVE_FAILED
|
||||
#define traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex )
|
||||
#endif
|
||||
|
||||
#ifndef traceCREATE_COUNTING_SEMAPHORE
|
||||
#define traceCREATE_COUNTING_SEMAPHORE()
|
||||
#endif
|
||||
|
@ -415,6 +415,10 @@ size_t xQueueSizeInBytes;
|
||||
{
|
||||
( pxMutex->uxRecursiveCallCount )++;
|
||||
}
|
||||
else
|
||||
{
|
||||
traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
|
||||
}
|
||||
}
|
||||
|
||||
return xReturn;
|
||||
|
Reference in New Issue
Block a user