]> granicus.if.org Git - xz/commit
tuklib_cpucores: Use cpuset_getaffinity() on FreeBSD if available.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 10 Feb 2015 13:28:30 +0000 (15:28 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 10 Feb 2015 13:28:30 +0000 (15:28 +0200)
commitd935b0cdf3db440269b9d952b2b281b18f8c7b08
treedaaa0a7ee9b6a2b10248396cc1b15a535e084a43
parenteb61bc58c20769cac4d05f363b9c0e8c9c71a560
tuklib_cpucores: Use cpuset_getaffinity() on FreeBSD if available.

In FreeBSD, cpuset_getaffinity() is the preferred way to get
the number of available cores.

Thanks to Rui Paulo for the patch. I edited it slightly, but
hopefully I didn't break anything.
m4/tuklib_cpucores.m4
src/common/tuklib_cpucores.c