[riot-notifications] [RIOT-OS/RIOT] gnrc_sock: re-issue MSG_RECV event if there are still received messages after `*_recv()` was called. (#14059)

Ken Bannister notifications at github.com
Fri May 15 16:59:45 CEST 2020


> Because every sock has just one `sock_event_t` to post. So if the event is not drained from the queue before the next post, it will just be re-added to the queue.

So at the end of `gnrc_sock_recv()` we can assume the user is pulling the latest event. This is the right time to check for more incoming data and post an event if present. Makes sense to me now.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14059#issuecomment-629282157
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200515/f478f866/attachment.htm>


More information about the notifications mailing list