Skip to content

Make use of sysconf(3) _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF

Brad Smith requested to merge brad/x264:x264_cpu_num_processors into master

Make use of _SC_NPROCESSORS_ONLN if if 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.

Merge request reports