summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearray.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-12-16 16:22:10 -0800
committerThiago Macieira <thiago.macieira@intel.com>2014-12-20 01:39:22 +0100
commit80d0075588aa94e011a394967fb21d8bb0c84781 (patch)
treefa43764ab19cec005c3535d78d29fbf8f0191da3 /src/corelib/tools/qbytearray.cpp
parent1c1cce67fa1d03a49cdfb6f1ca378b182925ffdb (diff)
Fix QThread::idealThreadCount on Unix if sysconf or sysctl fails
The BSD4 code (including OS X) calls sysctl and if that fails, it sets cores to -1. Similarly, the generic Unix code calls sysconf() and assigns the returned value to cores, but sysconf can return -1 on failure. Change-Id: I9e521d366e9c42f36c2ba20a37e7a74539ddb8f4 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/corelib/tools/qbytearray.cpp')
0 files changed, 0 insertions, 0 deletions