2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Use HECL_MULTIPROCESSOR macro for enabling multithreaded work

This commit is contained in:
Jack Andersen
2017-03-10 07:58:43 -10:00
parent 326f24d831
commit e698a27d1c
4 changed files with 8 additions and 3 deletions

View File

@@ -102,8 +102,8 @@ void ClientProcess::Worker::proc()
ClientProcess::ClientProcess(int verbosityLevel)
: m_verbosity(verbosityLevel)
{
#if defined(NDEBUG)
int cpuCount = GetCPUCount();
#ifdef HECL_MULTIPROCESSOR
const int cpuCount = GetCPUCount();
#else
constexpr int cpuCount = 1;
#endif