]> git.hungrycats.org Git - bees/commit
time: add more methods to support dynamic rate throttling
authorZygo Blaxell <bees@furryterror.org>
Tue, 10 Dec 2024 05:33:22 +0000 (00:33 -0500)
committerZygo Blaxell <bees@furryterror.org>
Fri, 13 Dec 2024 04:10:15 +0000 (23:10 -0500)
commita02588b16ffd5d243b87e0ef54c0c0c0f2e0d99f
treed4a1a52bdbf857f97d8c87933226adfe39ccb6bd
parent21cedfb13ed74b85b2a58863aaf0e8bd8af2d461
time: add more methods to support dynamic rate throttling

 * Allow RateLimiter to change rate after construction.
 * Check range of rate argument in constructor.
 * Atomic increment for RateEstimator.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
include/crucible/time.h
lib/time.cc