From 514791e5c6ded690aaf6dc43709dd02bc6a2ff6a Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 22 Aug 2017 14:58:12 +0200 Subject: lib: Make timerwheel a passive component This turns the timerwheel into a passive component since it is used by application using the library. The user of the timerwheel now has to call timerwheel_move to advance the timerwheel. --- include/ouroboros/timerwheel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/ouroboros/timerwheel.h b/include/ouroboros/timerwheel.h index e259c855..b0c9ee29 100644 --- a/include/ouroboros/timerwheel.h +++ b/include/ouroboros/timerwheel.h @@ -42,4 +42,6 @@ int timerwheel_restart(struct timerwheel * tw, void timerwheel_stop(struct timerwheel * tw, struct tw_f * f); +void timerwheel_move(struct timerwheel * tw); + #endif /* OUROBOROS_LIB_TIMERWHEEL_H */ -- cgit v1.2.3