forked from organicmaps/organicmaps
[android] Temporarily use only 1 CPU core to avoid crashes
This commit is contained in:
parent
9cc2aebd73
commit
bdce20f51d
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue