[android] Temporarily use only 1 CPU core to avoid crashes

This commit is contained in:
Alex Zolotarev 2012-01-25 09:02:33 +03:00 committed by Alex Zolotarev
parent 9cc2aebd73
commit bdce20f51d

View file

@ -85,11 +85,11 @@ void Platform::GetFilesInDir(string const & directory, string const & mask, File
int Platform::CpuCores() const
{
long const numCPU = sysconf(_SC_NPROCESSORS_ONLN);
if (numCPU >= 1)
return static_cast<int>(numCPU);
// @TODO temporarily commented to avoid crashes
// long const numCPU = sysconf(_SC_NPROCESSORS_ONLN);
// if (numCPU >= 1)
// return static_cast<int>(numCPU);
return 1;
}
string Platform::DeviceName() const