MCPcopy Index your code
hub / github.com/RT-Thread/rt-thread / rt_thread_mdelay

Function rt_thread_mdelay

src/thread.c:784–791  ·  view source on GitHub ↗

* @brief This function will let current thread delay for some milliseconds. * * @param ms The delay time in units of 1ms. * * @return Return the operation status. If the return value is `RT_EOK`, the * function is successfully executed. * If the return value is any other values, it means this operation failed. */

Source from the content-addressed store, hash-verified

782 * If the return value is any other values, it means this operation failed.
783 */
784rt_err_t rt_thread_mdelay(rt_int32_t ms)
785{
786 rt_tick_t tick;
787
788 tick = rt_tick_from_millisecond(ms);
789
790 return _thread_sleep(tick);
791}
792RTM_EXPORT(rt_thread_mdelay);
793
794#ifdef RT_USING_SMP

Callers 15

cmd_killallFunction · 0.85
_wait_sibling_exitFunction · 0.85
lwp_startupFunction · 0.85
sys_thread_mdelayFunction · 0.85
pcie_fixup_linkFunction · 0.85
dw_pcie_prog_inbound_atuFunction · 0.85
bypass_upper_002Function · 0.85
bypass_rx_stress_003Function · 0.85
bypass_rx_stress_002Function · 0.85

Calls 2

rt_tick_from_millisecondFunction · 0.85
_thread_sleepFunction · 0.85

Tested by 15

test_itemFunction · 0.68
utest_thr_entryFunction · 0.68
test_netdev_dhcpFunction · 0.68
test_tcpFunction · 0.68
test_udpFunction · 0.68
test_icmp_pingFunction · 0.68
test_dfs_renameFunction · 0.68
_test_i2c0_masterFunction · 0.68
gpio_led_flashingFunction · 0.68
gpio_ioFunction · 0.68
uart_rx_demoFunction · 0.68
test_ts_readFunction · 0.68