1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/msg_queue_print
Benjamin Valentin b5ea78ad47 core/msg: make msg_avail() return 0 on no queue
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.
2021-11-29 12:04:16 +01:00
..
tests core/msg: make msg_avail() return 0 on no queue 2021-11-29 12:04:16 +01:00
main.c tests/msg_queue_print: fix test on hw 2021-06-04 13:37:21 +02:00
Makefile tests/msg_queue_print/: new test for msg_queue_print 2021-06-02 01:28:28 +02:00