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.
This commit is contained in:
Nick Mathewson
2010-09-28 14:36:28 -04:00
parent c612ddee17
commit 73d93c033d
8 changed files with 73 additions and 5 deletions
+3
View File
@@ -0,0 +1,3 @@
o Minor features
- If you set the NumCPUs option to 0, Tor will try to detect how many
CPUs you have. This is the new default behavior.