summaryrefslogtreecommitdiff
path: root/src/or/config.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-09-28 14:36:28 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-28 14:42:21 -0400
commit73d93c033d3f4b9c95e8f3a5cc7e4a255d523b84 (patch)
tree4a6ef543d04d0153134d973977b0e5bfce80425d /src/or/config.h
parentc612ddee17c2f6e70fde9f0bdd7116516f384ae8 (diff)
downloadtor-73d93c033d3f4b9c95e8f3a5cc7e4a255d523b84.tar.gz
tor-73d93c033d3f4b9c95e8f3a5cc7e4a255d523b84.zip
Autodetect the number of CPUs when possible if NumCPUs==0
This is needed for IOCP, since telling the IOCP backend about all your CPUs is a good idea. It'll also come in handy with asn's multithreaded crypto stuff, and for people who run servers without reading the manual.
Diffstat (limited to 'src/or/config.h')
-rw-r--r--src/or/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h
index 7a4ba5c60f..bd5827b4e8 100644
--- a/src/or/config.h
+++ b/src/or/config.h
@@ -57,6 +57,8 @@ char *options_get_datadir_fname2_suffix(or_options_t *options,
#define get_datadir_fname_suffix(sub1, suffix) \
get_datadir_fname2_suffix((sub1), NULL, (suffix))
+int get_num_cpus(const or_options_t *options);
+
or_state_t *get_or_state(void);
int or_state_save(time_t now);