[all-commits] [llvm/llvm-project] 3d7f19: [libc++] Remove sysctl-based implementation of thr...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Thu Nov 26 09:01:22 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3d7f19ff182b249521061cff7a908efbc68d9f54
https://github.com/llvm/llvm-project/commit/3d7f19ff182b249521061cff7a908efbc68d9f54
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2020-11-26 (Thu, 26 Nov 2020)
Changed paths:
M libcxx/src/thread.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list