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

Function rt_thread_delay

src/thread.c:705–708  ·  view source on GitHub ↗

* @brief This function will let current thread delay for some ticks. * * @param tick The delay ticks, in units of 1 OS Tick. * * @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

703 * If the return value is any other values, it means this operation failed.
704 */
705rt_err_t rt_thread_delay(rt_tick_t tick)
706{
707 return _thread_sleep(tick);
708}
709RTM_EXPORT(rt_thread_delay);
710
711/**

Callers 15

finsh_wait_authFunction · 0.85
thread1_entryFunction · 0.85
rt_usbh_attatch_instanceFunction · 0.85
rt_usbh_hub_reset_portFunction · 0.85
rt_usbh_hub_enableFunction · 0.85
rt_udisk_runFunction · 0.85
_pipe_checkFunction · 0.85
test_itemFunction · 0.85
enc28j60_initFunction · 0.85
enc28j60_attachFunction · 0.85
retry_delay_100usFunction · 0.85

Calls 1

_thread_sleepFunction · 0.85

Tested by 15

test_itemFunction · 0.68
_vbat_initFunction · 0.68
test_cpusmpFunction · 0.68
test_hwtimerFunction · 0.68
test_rtcFunction · 0.68
usbd_vcom_threadFunction · 0.68
test_static_timerFunction · 0.68
test_dynamic_timerFunction · 0.68