summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorKyle J. McKay <mackyle@gmail.com>2015-03-07 23:14:37 -0800
committerJunio C Hamano <gitster@pobox.com>2015-03-10 15:13:28 -0700
commita25b5a32c76630f2433b860fef7bc28a9380a8f6 (patch)
tree98834d20fde1ef9e6b4a84ace375411bf71d9eec /git-compat-util.h
parent9529080de253b89474402f323e10470656764b3a (diff)
downloadgit-a25b5a32c76630f2433b860fef7bc28a9380a8f6.tar.gz
thread-utils.c: detect CPU count on older BSD-like systemskm/bsd-sysctl
Not all systems support using sysconf to detect the number of available CPU cores. Older BSD and BSD-derived systems only provide the information via the sysctl function. If HAVE_BSD_SYSCTL is defined attempt to retrieve the number of available CPU cores using the sysctl function. If HAVE_BSD_SYSCTL is not defined or the sysctl function fails, we still attempt to get the information via sysconf. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
0 files changed, 0 insertions, 0 deletions