Skip to content
Snippets Groups Projects
Commit da14df55 authored by Brad Smith's avatar Brad Smith
Browse files

Make use of sysconf(3) _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF

Make use of _SC_NPROCESSORS_ONLN if it exists and fallback to
_SC_NPROCESSORS_CONF for really old operating systems. This adds
support for retrieving the number of CPUs on a few OS's such as
NetBSD, DragonFly and a few others.
parent b1d2de88
Branches master
No related tags found
No related merge requests found
Pipeline #542090 passed with stages
in 3 minutes and 43 seconds
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