We are using FreeRTOS version 8.0.1 and our interest is about the blocked task on empty/full queue.
We would like to have queue which can be closed.
Function close will wake up all tasks blocked on empty/full queue with special error code (or exception) and all future
requests for read or write to the queue will return this special error code (or exception).
Same functionality is described in paper  on http://www.open-std.org/.
Is it possible to achieve this functionality with FreeRTOS queues or another synchronization primitives?
Our system uses tasks which receive shutdown signal and after received it terminates itself.
But we started using queues for sending messages between tasks and this approach is not possible when task gets blocked on empty queue.
Our primary concern is to implement proper shutdown procedure for every task.