[libc++] Remove sysctl-based implementation of thread::hardware_concurrency()
authorLouis Dionne <ldionne.2@gmail.com>
Wed, 25 Nov 2020 21:42:42 +0000 (16:42 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Thu, 26 Nov 2020 17:00:59 +0000 (12:00 -0500)
commit3d7f19ff182b249521061cff7a908efbc68d9f54
tree5a0a23b7b2b10e88e3b1dbcdc398d96c5d28fb91
parentd7ca140c0122a55a4042fb263ea3baaa501c361d
[libc++] Remove sysctl-based implementation of thread::hardware_concurrency()

Using sysctl requires including headers that are considered internal on
Linux, like <sys/sysctl.h> & friends. Instead, sysconf is defined by POSIX
(and we have a fallback for Windows), so all the systems we support should
be happy with just sysconf.

Differential Revision: https://reviews.llvm.org/D92135
libcxx/src/thread.cpp