From bed10e24a9a1818e8583a1f3b30a6dfdd3b57bfa Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 1 Jun 2016 16:19:22 -0700 Subject: refactor a getNumCores method --- src/support/threads.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/support/threads.h') 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(); -- cgit v1.2.3