mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Added the traceTAKE_MUTEX_RECURSIVE_FAILED() macro.
This commit is contained in:
parent
2fc309624b
commit
60bea08b22
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue