not found the funtion to delete a QueueSetHandle_t

totof95 wrote on Friday, April 17, 2015:


A use xQueueCreateSet to create a QueueSetHandle_t.
At the end of my function, i want to delete this QueueSetHandle_t.
I not found the function to delete a QueueSetHandle_t.

FreeRTOS 8.2.1
Can you help me?


rtel wrote on Friday, April 17, 2015:

I think you can pass the QueueSetHandle_t into vQueueDelete(), you may need to cast it to a QueueHandle_t to prevent compiler warnings though.

Note it is dangerous to delete a queue set if there are still queues in the set, so ensure to remove the queues first, and a queue can only be removed from a set if it is empty.