mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
b5ea78ad47
For the caller there should be no difference if there is no message in the queue and if there can't be a message in the queue. The current API works as one would expect if there is a message queue, but once called from a thread that does not have a message queue configured, code that does while (msg_avail()) will end up in an infinite loop. Remove this foot-gun from the API by making the return value of msg_avail() independend of the availability of a message queue. |
||
---|---|---|
.. | ||
tests | ||
main.c | ||
Makefile |