]> git.sur5r.net Git - freertos/commitdiff
Added the traceTAKE_MUTEX_RECURSIVE_FAILED() macro.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 21 Nov 2010 11:35:48 +0000 (11:35 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 21 Nov 2010 11:35:48 +0000 (11:35 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1150 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/include/FreeRTOS.h
Source/queue.c

index a5b8bd8036755f2a6308fae3769e9d1b3efe2154..5541304df9f764e98b9fe3372dc14073bd700c0c 100644 (file)
@@ -288,6 +288,10 @@ typedef portBASE_TYPE (*pdTASK_HOOK_CODE)( void * );
        #define traceTAKE_MUTEX_RECURSIVE( pxMutex )\r
 #endif\r
 \r
+#ifndef traceTAKE_MUTEX_RECURSIVE_FAILED\r
+       #define traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex )\r
+#endif\r
+\r
 #ifndef traceCREATE_COUNTING_SEMAPHORE\r
        #define traceCREATE_COUNTING_SEMAPHORE()\r
 #endif\r
index 17e37cf45ba2d8f8f3df90478a185d532d937568..e08cc2878797bb03b1152e50ed3aa9d83f635cbb 100644 (file)
@@ -415,6 +415,10 @@ size_t xQueueSizeInBytes;
                        {\r
                                ( pxMutex->uxRecursiveCallCount )++;\r
                        }\r
+                       else\r
+                       {\r
+                               traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );\r
+                       }\r
                }\r
 \r
                return xReturn;\r