| 268 | } |
| 269 | |
| 270 | static bool update_first(struct timers *timers) |
| 271 | { |
| 272 | const struct timer *found = get_first(timers); |
| 273 | |
| 274 | if (!found) { |
| 275 | timers->first = -1ULL; |
| 276 | return false; |
| 277 | } |
| 278 | |
| 279 | timers->first = found->time; |
| 280 | return true; |
| 281 | } |
| 282 | |
| 283 | bool timer_earliest(struct timers *timers, struct timemono *first) |
| 284 | { |
no test coverage detected