Janne Grunau <[email protected]> writes: > Uses the non-standard value _SC_NPROCESSORS_ONLN for sysconf() to > determine the number of CPUs.
This does the wrong thing. It returns the number of physical processors (including fake hyperthreading ones), even if the process is confined a subset. Since we're doing non-standard stuff anyway, a better result is obtained using the sched_getaffinity() call. -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
