diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-28 14:01:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-28 14:01:45 -0400 |
commit | c612ddee17c2f6e70fde9f0bdd7116516f384ae8 (patch) | |
tree | c2113145b817030aa8e0b1fd1d97ec65338a39a9 /src/common/compat_libevent.h | |
parent | d6e255edbd11f159c33ff77ceb638c0304dd9873 (diff) | |
download | tor-c612ddee17c2f6e70fde9f0bdd7116516f384ae8.tar.gz tor-c612ddee17c2f6e70fde9f0bdd7116516f384ae8.zip |
Add a new option to enable/disable IOCP support
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r-- | src/common/compat_libevent.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h index f483d6ee6d..ecf25806d5 100644 --- a/src/common/compat_libevent.h +++ b/src/common/compat_libevent.h @@ -56,7 +56,12 @@ struct timeval; int tor_event_base_loopexit(struct event_base *base, struct timeval *tv); #endif -void tor_libevent_initialize(void); +typedef struct tor_libevent_cfg { + int disable_iocp; + int num_cpus; +} tor_libevent_cfg; + +void tor_libevent_initialize(tor_libevent_cfg *cfg); struct event_base *tor_libevent_get_base(void); const char *tor_libevent_get_method(void); void tor_check_libevent_version(const char *m, int server, |