BUG/MINOR: threads: Fixes the number of possible cpus report for Mac.
authorDavid CARLIER <devnexen@gmail.com>
Fri, 15 Jan 2021 08:09:56 +0000 (08:09 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Jan 2021 10:58:46 +0000 (11:58 +0100)
commit6a9060189d66ca931984706d5e2a970ed913f457
tree879a79e73979e1849f406e4652429ed157343a0f
parente3bdc81f8aeb02b5c92b5d10fc9352daaea1cf20
BUG/MINOR: threads: Fixes the number of possible cpus report for Mac.

There is no low level api to achieve same as Linux/FreeBSD, we rely
on CPUs available. Without this, the number of threads is just 1 for
Mac while having 8 cores in my M1.

Backporting to 2.1 should be enough if that's possible.

Signed-off-by: David CARLIER <devnexen@gmail.com>
src/thread.c