]> git.ozlabs.org Git - ccan/commit
timer: change timers_expire() to return a single timer.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 29 Oct 2014 05:32:46 +0000 (16:02 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 30 Oct 2014 22:52:11 +0000 (09:22 +1030)
commitfe6bc8c530795a6c718f7e8fd1a6643d9f3024a1
tree57797a67ed01e7aaa4cf67c07d00ba816d3a940b
parent2ecae4f3ae8880196794704029c90d0285c8cb80
timer: change timers_expire() to return a single timer.

The linked list method was problematic, especially if timers delete
other expired timers (eg. the next one in the expired list: the timer_del
will delete it from expired, but that's a bit unexpected).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/timer/_info
ccan/timer/benchmarks/expected-usage.c
ccan/timer/test/run-expiry.c
ccan/timer/test/run-ff.c
ccan/timer/test/run.c
ccan/timer/timer.c
ccan/timer/timer.h