summaryrefslogtreecommitdiff
path: root/src/support/threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/threads.h')
-rw-r--r--src/support/threads.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/support/threads.h b/src/support/threads.h
index 9a43ac699..ea9e53c13 100644
--- a/src/support/threads.h
+++ b/src/support/threads.h
@@ -79,6 +79,9 @@ private:
void initialize(size_t num);
public:
+ // Get the number of cores we can use.
+ static size_t getNumCores();
+
// Get the singleton threadpool. This can return null
// if there is just one thread available.
static ThreadPool* get();