[riot-notifications] [RIOT-OS/RIOT] core/msg doc: Clarify; elaborating on interaction with queue (#16794)

chrysn notifications at github.com
Wed Sep 1 15:01:58 CEST 2021

### Contribution description

When I worked through messages, I got once more confused by how msg_send_receive / msg_reply work -- what if I receive another message while waiting? Do I have to make sure that doesn't happen? Would the other message get dropped? What if there's already a message waiting in the queue?

This clarifies the behavior, which (from reading the code) I understand to be that the thread, for all other messages, behaves like it's not waiting for a message, and that only the msg_respond function understands that state and puts the message in -- responses never enter the queue.

### Testing procedure

* Read updated documentation and compare to your expectations.
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * core/msg doc: Clarify; elaborating on interaction with queue

-- File Changes --

    M core/include/msg.h (8)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210901/a703695e/attachment.htm>

More information about the notifications mailing list