X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftimer%2Ftimer.h;fp=ccan%2Ftimer%2Ftimer.h;h=3bf28d0fbda2cdd8f4e3396bc19928d2b1ac7960;hb=a40fc5a89e5336f405b84387d387c9f5a74e95fa;hp=7b5d199470c49e829aa19c0363eaa715c6324fee;hpb=606cca7b0ed5236d1df1c4436ca79db6e3fd5321;p=ccan diff --git a/ccan/timer/timer.h b/ccan/timer/timer.h index 7b5d1994..3bf28d0f 100644 --- a/ccan/timer/timer.h +++ b/ccan/timer/timer.h @@ -61,7 +61,7 @@ void timer_del(struct timers *timers, struct timer *timer); * timers. Otherwise, it sets @first to the expiry time of the first * timer (rounded to TIMER_GRANULARITY nanoseconds), and returns true. */ -bool timer_earliest(const struct timers *timers, struct timespec *first); +bool timer_earliest(struct timers *timers, struct timespec *first); /** * timer_expire - update timers structure and remove expired timers. @@ -123,6 +123,7 @@ struct timers { /* Far in the future. */ struct list_head far; uint64_t base; + uint64_t first; struct timer_level *level[(64 + TIMER_LEVEL_BITS-1) / TIMER_LEVEL_BITS]; };