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

Function _set_next_timeout_locked

components/drivers/ktime/src/hrtimer.c:140–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140static void _set_next_timeout_locked(void)
141{
142 rt_ktime_hrtimer_t timer;
143 rt_ubase_t next_timeout_hrtimer_cnt;
144 rt_bool_t find_next;
145
146 do
147 {
148 find_next = RT_FALSE;
149 if ((timer = _first_hrtimer()) != RT_NULL)
150 {
151 next_timeout_hrtimer_cnt = _cnt_convert(timer->timeout_cnt);
152 if (next_timeout_hrtimer_cnt > 0)
153 {
154 rt_ktime_hrtimer_settimeout(next_timeout_hrtimer_cnt);
155 }
156 else
157 {
158 _hrtimer_process_locked();
159 find_next = RT_TRUE;
160 }
161 }
162 }
163 while (find_next);
164}
165
166void rt_ktime_hrtimer_process(void)
167{

Callers 4

rt_ktime_hrtimer_processFunction · 0.85
rt_ktime_hrtimer_startFunction · 0.85
rt_ktime_hrtimer_stopFunction · 0.85
rt_ktime_hrtimer_detachFunction · 0.85

Calls 3

_cnt_convertFunction · 0.85
_hrtimer_process_lockedFunction · 0.85

Tested by

no test coverage detected