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

Method sleep

components/libc/cplusplus/os/cxx_Thread.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void Thread::sleep(int32_t millisec)
65{
66 rt_int32_t tick;
67
68 if (millisec < 0)
69 tick = 1;
70 else
71 tick = rt_tick_from_millisecond(millisec);
72
73 rt_thread_delay(tick);
74}
75
76void Thread::func(Thread *pThis)
77{

Callers 11

monitor_log_fileFunction · 0.80
pm_sleepFunction · 0.80
_pm_change_sleep_modeFunction · 0.80
execute_commandFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
__pack_programFunction · 0.80
do_attachFunction · 0.80
__pack_programFunction · 0.80
do_attachFunction · 0.80
tcp_linkFunction · 0.80

Calls 2

rt_tick_from_millisecondFunction · 0.85
rt_thread_delayFunction · 0.85

Tested by

no test coverage detected