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

Function rt_completion_wait

components/drivers/ipc/completion_comm.c:76–80  ·  view source on GitHub ↗

* @brief This function will wait for a completion, if the completion is unavailable, the thread shall wait for * the completion up to a specified time. * * @param completion is a pointer to a completion object. * * @param timeout is a timeout period (unit: OS ticks). If the completion is unavailable, the thread will wait for * the completion done up to the amount of tim

Source from the content-addressed store, hash-verified

74 * @warning This function can ONLY be called in the thread context. It MUST NOT be called in interrupt context.
75 */
76rt_err_t rt_completion_wait(struct rt_completion *completion,
77 rt_int32_t timeout)
78{
79 return rt_completion_wait_flags(completion, timeout, RT_UNINTERRUPTIBLE);
80}
81RTM_EXPORT(rt_completion_wait);

Callers 15

vcom_tx_thread_entryFunction · 0.85
_serial_int_txFunction · 0.85
_serial_fifo_rxFunction · 0.85
_serial_rx_flushFunction · 0.85
_serial_tx_flushFunction · 0.85
_can_int_txFunction · 0.85
_can_int_tx_privFunction · 0.85
_aduio_replay_stopFunction · 0.85
nvme_submit_cmdFunction · 0.85

Calls 1

rt_completion_wait_flagsFunction · 0.70

Tested by

no test coverage detected