diff options
author | Sander Vrijders <[email protected]> | 2017-08-22 14:58:12 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-08-22 15:00:56 +0200 |
commit | 514791e5c6ded690aaf6dc43709dd02bc6a2ff6a (patch) | |
tree | b751a94678188772c5772261549fe772a7872427 /include | |
parent | 911a0ba062f7fd9debfebd330e94ff7de6ac1101 (diff) | |
download | ouroboros-514791e5c6ded690aaf6dc43709dd02bc6a2ff6a.tar.gz ouroboros-514791e5c6ded690aaf6dc43709dd02bc6a2ff6a.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/timerwheel.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |