From: richardbarry Date: Sun, 21 Nov 2010 11:35:48 +0000 (+0000) Subject: Added the traceTAKE_MUTEX_RECURSIVE_FAILED() macro. X-Git-Tag: V6.1.1~107 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=382abe3269989f6af0730a37da4af00fa3db3ccc;p=freertos Added the traceTAKE_MUTEX_RECURSIVE_FAILED() macro. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1150 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/include/FreeRTOS.h b/Source/include/FreeRTOS.h index a5b8bd803..5541304df 100644 --- a/Source/include/FreeRTOS.h +++ b/Source/include/FreeRTOS.h @@ -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 diff --git a/Source/queue.c b/Source/queue.c index 17e37cf45..e08cc2878 100644 --- a/Source/queue.c +++ b/Source/queue.c @@ -415,6 +415,10 @@ size_t xQueueSizeInBytes; { ( pxMutex->uxRecursiveCallCount )++; } + else + { + traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex ); + } } return xReturn;