summaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-09-07 22:00:48 -0400
committerNick Mathewson <nickm@torproject.org>2011-09-22 15:07:34 -0400
commit41dfc4c19c4e0ee37d092fa0ed7faf349e6ab467 (patch)
tree621914608ae5e2031a044448ee3c07d68144dbb6 /src/common/compat_libevent.h
parent052b95e2f196211c97b33ce8c68960e1c2561ea0 (diff)
downloadtor-41dfc4c19c4e0ee37d092fa0ed7faf349e6ab467.tar.gz
tor-41dfc4c19c4e0ee37d092fa0ed7faf349e6ab467.zip
Make bufferevents work with TokenBucketRefillInterval
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r--src/common/compat_libevent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h
index 15b0fc273b..0247297177 100644
--- a/src/common/compat_libevent.h
+++ b/src/common/compat_libevent.h
@@ -62,6 +62,7 @@ int tor_event_base_loopexit(struct event_base *base, struct timeval *tv);
typedef struct tor_libevent_cfg {
int disable_iocp;
int num_cpus;
+ int msec_per_tick;
} tor_libevent_cfg;
void tor_libevent_initialize(tor_libevent_cfg *cfg);
@@ -73,7 +74,6 @@ void tor_check_libevent_header_compatibility(void);
const char *tor_libevent_get_version_str(void);
#ifdef USE_BUFFEREVENTS
-#define TOR_LIBEVENT_TICKS_PER_SECOND 3
const struct timeval *tor_libevent_get_one_tick_timeout(void);
int tor_libevent_using_iocp_bufferevents(void);
int tor_set_bufferevent_rate_limit(struct bufferevent *bev,