macos platform fixes for intel macs

This commit is contained in:
Jeff Hutchinson 2021-09-25 22:39:40 -04:00
parent 433d32f237
commit 7cb306b65a
6 changed files with 132 additions and 885 deletions

View file

@ -322,10 +322,9 @@ ThreadPool::ThreadPool( const char* name, U32 numThreads )
// Platform::SystemInfo will not yet have been initialized.
U32 numLogical = 0;
U32 numPhysical = 0;
U32 numCores = 0;
CPUInfo::CPUCount( numLogical, numCores, numPhysical );
CPUInfo::CPUCount( numLogical, numCores );
const U32 baseCount = getMax( numLogical, numCores );
mNumThreads = (baseCount > 0) ? baseCount : 2;