* @brief This function will send a message to the messagequeue object. * If there is a thread suspended on the messagequeue, the thread will be resumed. * * @note When using this function to send a message, if the messagequeue is fully used, * the current thread will wait for a timeout. * By contrast, when the messagequeue is fully used, the rt_mq_send_wai
| 3620 | * @warning This function can be called in interrupt context and thread context. |
| 3621 | */ |
| 3622 | rt_err_t rt_mq_send(rt_mq_t mq, const void *buffer, rt_size_t size) |
| 3623 | { |
| 3624 | return rt_mq_send_wait(mq, buffer, size, 0); |
| 3625 | } |
| 3626 | RTM_EXPORT(rt_mq_send); |
| 3627 | |
| 3628 | rt_err_t rt_mq_send_interruptible(rt_mq_t mq, const void *buffer, rt_size_t size) |