]> git.ipfire.org Git - thirdparty/zstd.git/commit
Make UTIL_countPhysicalCores() work under Cygwin (#1941)
authorChristoph Reiter <reiter.christoph@gmail.com>
Tue, 7 Jan 2020 23:48:26 +0000 (00:48 +0100)
committerNick Terrell <terrelln@fb.com>
Tue, 7 Jan 2020 23:48:26 +0000 (15:48 -0800)
commitd0dcaf56c23d5691625b0b02ff106f08baa79f9c
tree60643140d4c76046436c15f55aa5ecc8cc53297a
parent311925626790268316dceae8f328d012baabd874
Make UTIL_countPhysicalCores() work under Cygwin (#1941)

Cygwin currently uses the fallback implementation which just returns 1 every time,
which leads to bad performance when zstd is called with -T0 for example.

Instead use the POSIX implementation used for the BSDs which works just fine under Cygwin.

Tested under Cygwin and MSYS2.
programs/util.c