Add usage assertions when deleting a queue

Adds an assertion which helps to verify
a queue is not in use before deletion.
This commit is contained in:
Kody Stribrny 2026-07-09 14:47:01 -07:00
parent d72263b404
commit 521aa2cd5c

View file

@ -2261,6 +2261,8 @@ void vQueueDelete( QueueHandle_t xQueue )
traceENTER_vQueueDelete( xQueue );
configASSERT( pxQueue );
configASSERT( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) );
configASSERT( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) );
traceQUEUE_DELETE( pxQueue );
#if ( configQUEUE_REGISTRY_SIZE > 0 )