Skip to content
Snippets Groups Projects
Commit 640210e5 authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

SystemInformation: use /proc/cpuinfo only when present

Try to open /proc/cpuinfo only on platforms where it's presence is
expected, namely Linux and Cygwin.

Otherwise try sysconf(_SC_NPROCESSORS_ONLN) as last resort to count
processors. Also account for the slightly different name on IRIX.

Change-Id: I89eb5e198a6b3a33b581b70d2213096cbac8ca7c
parent e6771b34
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment