Added the traceTAKE_MUTEX_RECURSIVE_FAILED() macro.

This commit is contained in:
Richard Barry 2010-11-21 11:35:48 +00:00
parent 2fc309624b
commit 60bea08b22
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -415,6 +415,10 @@ size_t xQueueSizeInBytes;
{ {
( pxMutex->uxRecursiveCallCount )++; ( pxMutex->uxRecursiveCallCount )++;
} }
else
{
traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
}
} }
return xReturn; return xReturn;