summaryrefslogtreecommitdiff
path: root/src/lib/thread/numcpus.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-28 12:08:18 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-28 12:08:18 -0400
commit6178a9f758d60f5fc896644f1b9b0aaf4c32f2a5 (patch)
tree207d1df4696820488a87c218c95126e422805f13 /src/lib/thread/numcpus.h
parent042df08693521a7cba990489fa03547a6e3fec4c (diff)
downloadtor-6178a9f758d60f5fc896644f1b9b0aaf4c32f2a5.tar.gz
tor-6178a9f758d60f5fc896644f1b9b0aaf4c32f2a5.zip
Move compute_num_cpus to lib/thread
Diffstat (limited to 'src/lib/thread/numcpus.h')
-rw-r--r--src/lib/thread/numcpus.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/thread/numcpus.h b/src/lib/thread/numcpus.h
new file mode 100644
index 0000000000..2899a9ec8a
--- /dev/null
+++ b/src/lib/thread/numcpus.h
@@ -0,0 +1,11 @@
+/* Copyright (c) 2003-2004, Roger Dingledine
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2018, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+#ifndef TOR_NUMCPUS_H
+#define TOR_NUMCPUS_H
+
+int compute_num_cpus(void);
+
+#endif