mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Just cleaned up some code
This commit is contained in:
parent
7bf99e38ec
commit
48ba106667
1 changed files with 4 additions and 7 deletions
|
|
@ -328,17 +328,14 @@ ThreadPool::ThreadPool( const char* name, U32 numThreads )
|
||||||
// Use platformCPUInfo directly as in the case of the global pool,
|
// Use platformCPUInfo directly as in the case of the global pool,
|
||||||
// Platform::SystemInfo will not yet have been initialized.
|
// Platform::SystemInfo will not yet have been initialized.
|
||||||
|
|
||||||
U32 numLogical;
|
U32 numLogical = 0;
|
||||||
U32 numPhysical;
|
U32 numPhysical = 0;
|
||||||
U32 numCores;
|
U32 numCores = 0;
|
||||||
|
|
||||||
CPUInfo::CPUCount( numLogical, numCores, numPhysical );
|
CPUInfo::CPUCount( numLogical, numCores, numPhysical );
|
||||||
|
|
||||||
const U32 baseCount = getMax( numLogical, numCores );
|
const U32 baseCount = getMax( numLogical, numCores );
|
||||||
if( baseCount )
|
mNumThreads = (baseCount > 0) ? baseCount : 2;
|
||||||
mNumThreads = baseCount;
|
|
||||||
else
|
|
||||||
mNumThreads = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_SPEW
|
#ifdef DEBUG_SPEW
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue