Queue set (FreeRTOS)
FreeRTOS's answer to select(): a task blocks on several queues and semaphores at once and wakes on whichever gets data first.
A plain FreeRTOS task can only wait on one thing at a time. If it needs to listen to both a UART queue and a button semaphore, it has to poll or be split into two tasks. A queue set fixes that. You create one with xQueueCreateSet(), add members with xQueueAddToSet() and block in xQueueSelectFromSet(), which returns the handle of whichever member has something ready. The actual receive is then done as usual.
The set must be sized for the combined length of all its members or events get lost, and the feature needs configUSE_QUEUE_SETS switched on. FreeRTOS's own documentation is unusually blunt that there's usually a better design: a single queue carrying tagged messages, an event group, or task notifications.