Assert that the semaphore handle passed into xQueueGetMutexHolder is not NULL.

This commit is contained in:
Paul Bartell 2021-03-05 11:22:08 -08:00
parent 58ba569663
commit d1d08e4184

View file

@ -563,6 +563,8 @@ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength,
TaskHandle_t pxReturn;
Queue_t * const pxSemaphore = ( Queue_t * ) xSemaphore;
configASSERT( xSemaphore );
/* This function is called by xSemaphoreGetMutexHolder(), and should not
* be called directly. Note: This is a good way of determining if the
* calling task is the mutex holder, but not a good way of determining the