mirror of
https://github.com/apache/nuttx.git
synced 2026-05-12 09:48:31 +08:00
9cf7d80bab
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>