summaryrefslogtreecommitdiff
path: root/ucoo/utils/rate_limit.hh
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/utils/rate_limit.hh')
-rw-r--r--ucoo/utils/rate_limit.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ucoo/utils/rate_limit.hh b/ucoo/utils/rate_limit.hh
index c902257..0020ac7 100644
--- a/ucoo/utils/rate_limit.hh
+++ b/ucoo/utils/rate_limit.hh
@@ -45,6 +45,8 @@ class RateLimit
/// Refresh timestamp to avoid overflow, must be called periodically when
/// permission is not requested often enough.
void refresh ();
+ /// Reset as if permission was allowed.
+ void reset ();
private:
/// Associated timer.
const Timer &timer_;