aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-06-05 00:17:54 -0400
committerNick Mathewson <nickm@torproject.org>2012-06-05 00:17:54 -0400
commit913067f788d84d748d9377bb5563b2a8f88dc483 (patch)
treec0407004c0a59d852040abfa67ba4fe94321af37 /src/common/compat_libevent.h
parent064e7c19c66a6e8a65e13508c57f3d7c89060112 (diff)
downloadtor-913067f788d84d748d9377bb5563b2a8f88dc483.tar.gz
tor-913067f788d84d748d9377bb5563b2a8f88dc483.zip
Resolve about 24 DOCDOCs
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r--src/common/compat_libevent.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h
index af819dbc97..224c76fda7 100644
--- a/src/common/compat_libevent.h
+++ b/src/common/compat_libevent.h
@@ -59,10 +59,15 @@ struct timeval;
int tor_event_base_loopexit(struct event_base *base, struct timeval *tv);
#endif
-/* DOCDOC tor_libevent_cfg */
+/** Defines a configuration for using libevent with Tor: passed as an argument
+ * to tor_libevent_initialize() to describe how we want to set up. */
typedef struct tor_libevent_cfg {
+ /** Flag: if true, disable IOCP (assuming that it could be enabled). */
int disable_iocp;
+ /** How many CPUs should we use (relevant only with IOCP). */
int num_cpus;
+ /** How many milliseconds should we allow between updating bandwidth limits?
+ * (relevant only with bufferevents). */
int msec_per_tick;
} tor_libevent_cfg;