diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-10 11:23:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-13 10:41:14 -0400 |
commit | c376200f6a77b2509928bc08d2aa1245028cec30 (patch) | |
tree | 3e086444e595718c59edffeaeb13e439422a8bc8 /src/common/include.am | |
parent | d8ef9a2d1e0701073d8209115bc3c34857c2d7b4 (diff) | |
download | tor-c376200f6a77b2509928bc08d2aa1245028cec30.tar.gz tor-c376200f6a77b2509928bc08d2aa1245028cec30.zip |
Add a new token-bucket backend abstraction, with tests
This differs from our previous token bucket abstraction in a few
ways:
1) It is an abstraction, and not a collection of fields.
2) It is meant to be used with monotonic timestamps, which should
produce better results than calling gettimeofday over and over.
Diffstat (limited to 'src/common/include.am')
-rw-r--r-- | src/common/include.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/include.am b/src/common/include.am index 73c51ff0b2..87ab9d79e9 100644 --- a/src/common/include.am +++ b/src/common/include.am @@ -97,6 +97,7 @@ LIBOR_A_SRC = \ src/common/util_process.c \ src/common/sandbox.c \ src/common/storagedir.c \ + src/common/token_bucket.c \ src/common/workqueue.c \ $(libor_extra_source) \ $(threads_impl_source) \ @@ -184,6 +185,7 @@ COMMONHEADERS = \ src/common/storagedir.h \ src/common/testsupport.h \ src/common/timers.h \ + src/common/token_bucket.h \ src/common/torint.h \ src/common/torlog.h \ src/common/tortls.h \ |