mirror of
https://github.com/git/git.git
synced 2024-12-12 19:34:35 +08:00
e3482ccf27
Created helper executable to print the value of online_cpus() allowing multi-threaded tests to be skipped when appropriate. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
9 lines
145 B
C
9 lines
145 B
C
#include "git-compat-util.h"
|
|
#include "thread-utils.h"
|
|
|
|
int cmd_main(int argc, const char **argv)
|
|
{
|
|
printf("%d\n", online_cpus());
|
|
return 0;
|
|
}
|