mirror of https://git.tukaani.org/xz.git
df8f446e3a
It's available in glibc (GNU/Linux, GNU/kFreeBSD). It's better than sysconf(_SC_NPROCESSORS_ONLN) because sched_getaffinity() gives the number of cores available to the process instead of the total number of cores online. As a side effect, this commit fixes a bug on GNU/kFreeBSD where configure would detect the FreeBSD-specific cpuset_getaffinity() but it wouldn't actually work because on GNU/kFreeBSD it requires using -lfreebsd-glue when linking. Now the glibc-specific function will be used instead. Thanks to Sebastian Andrzej Siewior for the original patch and testing. |
||
---|---|---|
.. | ||
common_w32res.rc | ||
mythread.h | ||
sysdefs.h | ||
tuklib_common.h | ||
tuklib_config.h | ||
tuklib_cpucores.c | ||
tuklib_cpucores.h | ||
tuklib_exit.c | ||
tuklib_exit.h | ||
tuklib_gettext.h | ||
tuklib_integer.h | ||
tuklib_mbstr.h | ||
tuklib_mbstr_fw.c | ||
tuklib_mbstr_width.c | ||
tuklib_open_stdxxx.c | ||
tuklib_open_stdxxx.h | ||
tuklib_physmem.c | ||
tuklib_physmem.h | ||
tuklib_progname.c | ||
tuklib_progname.h |