]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: Implement thread_cpus_enabled() for FreeBSD.
authorOlivier Houchard <cognet@ci0.org>
Wed, 10 Apr 2019 22:06:47 +0000 (00:06 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 10 Apr 2019 22:09:22 +0000 (00:09 +0200)
commit46453d3f7d09c56b07a1b3745f1a2d24c5650c15
tree30e0728d79b08708bfaff336e8f29c4c7a9abee4
parent526dc95eb988bde789f2b1c3e7ea24e0f3dfc540
MINOR: threads: Implement thread_cpus_enabled() for FreeBSD.

Use cpuset_getaffinity() to implement thread_cpus_enabled() on FreeBSD, so
that we can know the number of CPUs available, and automatically launch as
much threads if nbthread isn't specified.
src/hathreads.c