commit | d935b0cdf3db440269b9d952b2b281b18f8c7b08 | [log] [tgz] |
---|---|---|
author | Lasse Collin <lasse.collin@tukaani.org> | Tue Feb 10 15:28:30 2015 +0200 |
committer | Lasse Collin <lasse.collin@tukaani.org> | Tue Feb 10 15:28:30 2015 +0200 |
tree | daaa0a7ee9b6a2b10248396cc1b15a535e084a43 | |
parent | eb61bc58c20769cac4d05f363b9c0e8c9c71a560 [diff] |
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.