I am new to the forum. Maybe this has been explained before, but I don’t know how to find.
My case is that I want to handle a number of sockets and a queue with a single Task.
I am aware of the SocketSet and have used Queues. If I want to use a xTaskNotifyWait to wait for events from both the Queue and the SocketSet, how would I go about?
Polling with short timeout. Note that it has at most 10ms delay to handle queue event because of timeout of select in below example. I don’t recommend to set both timeout to 0 because it makes this task busy polling.
while the solution is perfectly ok (except that the control flow favors socket events over queue events), what is the additional notification detour used for? Why could your socket callback not post another (tagged) event directly to the queue?