Codechange: C++11 STL has a function for getting the number of CPU cores.
This commit is contained in:
@@ -29,12 +29,6 @@ inline void CSleep(int milliseconds)
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(milliseconds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get number of processor cores in the system, including HyperThreading or similar.
|
||||
* @return Total number of processor cores.
|
||||
*/
|
||||
uint GetCPUCoreCount();
|
||||
|
||||
/**
|
||||
* Name the thread this function is called on for the debugger.
|
||||
* @param name Name to set for the thread..
|
||||
|
Reference in New Issue
Block a user