MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_mq_send

Function rt_mq_send

src/ipc.c:3622–3625  ·  view source on GitHub ↗

* @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

Source from the content-addressed store, hash-verified

3620 * @warning This function can be called in interrupt context and thread context.
3621 */
3622rt_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}
3626RTM_EXPORT(rt_mq_send);
3627
3628rt_err_t rt_mq_send_interruptible(rt_mq_t mq, const void *buffer, rt_size_t size)

Callers 15

rt_usbd_event_signalFunction · 0.85
_ep_out_handlerFunction · 0.85
rt_usbh_event_signalFunction · 0.85
sys_mq_sendFunction · 0.85
usb_osal_mq_sendFunction · 0.85
putMethod · 0.85
cpu_thread_entryFunction · 0.85
key_thread_entryFunction · 0.85
adc_thread_entryFunction · 0.85
ab32_pin_irq_handlerFunction · 0.85
uart0_irq_postFunction · 0.85
uart1_irq_postFunction · 0.85

Calls 1

rt_mq_send_waitFunction · 0.85

Tested by 2

uart_input_dmaFunction · 0.68
uart_input_dmaFunction · 0.68