MCPcopy Create free account
hub / github.com/ElementsProject/lightning / timers_far_get

Function timers_far_get

ccan/ccan/timer/timer.c:142–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142static void timers_far_get(struct timers *timers,
143 struct list_head *list,
144 uint64_t when)
145{
146 struct timer *i, *next;
147
148 list_for_each_safe(&timers->far, i, next, list) {
149 if (i->time <= when) {
150 list_del_from(&timers->far, &i->list);
151 list_add_tail(list, &i->list);
152 }
153 }
154}
155
156static void add_level(struct timers *timers, unsigned int level)
157{

Callers 2

add_levelFunction · 0.85
timer_fast_forwardFunction · 0.85

Calls 1

list_del_fromFunction · 0.85

Tested by

no test coverage detected