helper_thread: Rework the interval timer code
authorBart Van Assche <bvanassche@acm.org>
Wed, 9 Sep 2020 02:34:45 +0000 (19:34 -0700)
committerBart Van Assche <bvanassche@acm.org>
Sat, 26 Sep 2020 02:43:43 +0000 (19:43 -0700)
commitdf9bd7d452dfdcebfc1bdf317c74c3af09cc9719
tree55194f4a2b03b2e192c1501ec82ad487dd557c6a
parent966f8ef911a752782a086072a7cf2591b09d754e
helper_thread: Rework the interval timer code

Instead of adding the number of milliseconds that have elapsed when
a timer fires, add the timer interval. Reduce code duplication by
introducing a helper function that verifies whether or not a timer
has expired.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
helper_thread.c