summaryrefslogtreecommitdiff
path: root/src/thread
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-12-10 16:54:41 +0000
committermichi_cc <michi_cc@openttd.org>2011-12-10 16:54:41 +0000
commita0f3649c1abe7b831f083366e2fd91206bf23091 (patch)
tree5a352c430013c682e93d1a1b85960182cd18fbac /src/thread
parent0ca25fb3af8fbf00607df120149b27aa7a763edb (diff)
downloadopenttd-a0f3649c1abe7b831f083366e2fd91206bf23091.tar.xz
(svn r23481) -Add: Function to get the CPU core count.
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/thread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/thread/thread.h b/src/thread/thread.h
index 83eeb73eb..26d209d2a 100644
--- a/src/thread/thread.h
+++ b/src/thread/thread.h
@@ -88,4 +88,10 @@ public:
virtual void SendSignal() = 0;
};
+/**
+ * Get number of processor cores in the system, including HyperThreading or similar.
+ * @return Total number of processor cores.
+ */
+uint GetCPUCoreCount();
+
#endif /* THREAD_H */