mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
The internal implementation of `file_mq_receive` did not allow receiving a message from an interrupt handler. Although it is not possible to wait for a message in an interrupt context, it is perfectly possible to retrieve already-existing messages from the message queue. This commit modifies file_mq_timedreceive_internal to enable checking the message list and, if no messages exist, it returns immediately. This enables receiving any existing messages in an interrupt context. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Make.defs | ||
| mq_getattr.c | ||
| mq_initialize.c | ||
| mq_msgfree.c | ||
| mq_msgqalloc.c | ||
| mq_msgqfree.c | ||
| mq_notify.c | ||
| mq_rcvinternal.c | ||
| mq_receive.c | ||
| mq_recover.c | ||
| mq_send.c | ||
| mq_setattr.c | ||
| mq_sndinternal.c | ||
| mq_waitirq.c | ||
| mqueue.h | ||
| msg.h | ||
| msgctl.c | ||
| msgget.c | ||
| msginternal.c | ||
| msgrcv.c | ||
| msgsnd.c | ||