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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user