| 281 | } |
| 282 | |
| 283 | bool timer_earliest(struct timers *timers, struct timemono *first) |
| 284 | { |
| 285 | if (!update_first(timers)) |
| 286 | return false; |
| 287 | |
| 288 | *first = grains_to_time(timers->first); |
| 289 | return true; |
| 290 | } |
| 291 | |
| 292 | /* Assume no timers before 'time', cascade down and update base time. */ |
| 293 | static void timer_fast_forward(struct timers *timers, uint64_t time) |