mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 17:17:44 -04:00
Assert that the semaphore handle passed into xQueueGetMutexHolder is not NULL.
This commit is contained in:
parent
58ba569663
commit
d1d08e4184
1 changed files with 2 additions and 0 deletions
2
queue.c
2
queue.c
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue