(svn r23481) -Add: Function to get the CPU core count.

This commit is contained in:
michi_cc
2011-12-10 16:54:41 +00:00
parent 0ca25fb3af
commit a0f3649c1a
5 changed files with 67 additions and 0 deletions

View File

@@ -753,3 +753,11 @@ const char *GetCurrentLocale(const char *)
static char retbuf[6] = {lang[0], lang[1], '_', country[0], country[1], 0};
return retbuf;
}
uint GetCPUCoreCount()
{
SYSTEM_INFO info;
GetSystemInfo(&info);
return info.dwNumberOfProcessors;
}