We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60f34f8 commit 742729eCopy full SHA for 742729e
queue.c
@@ -833,6 +833,10 @@ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength,
833
if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
834
{
835
( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
836
+
837
+ /* Check if an overflow occurred. */
838
+ configASSERT( pxMutex->u.xSemaphore.uxRecursiveCallCount );
839
840
xReturn = pdPASS;
841
}
842
else
@@ -845,6 +849,9 @@ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength,
845
849
if( xReturn != pdFAIL )
846
850
847
851
852
853
854
848
855
856
857
0 commit comments