diff options
author | Fangrui Song <i@maskray.me> | 2022-11-23 21:09:44 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-11-23 21:09:45 -0800 |
commit | 875adb400754bb331d3540af67c94577ff58e8c8 (patch) | |
tree | ecbc42607652d981ca486f09094a2fa6832f9c1f /llvm/lib/Support/Unix/Threading.inc | |
parent | 93b553e3f2e4f53ce3dda13cd18dbc43643a535b (diff) | |
download | llvm-875adb400754bb331d3540af67c94577ff58e8c8.zip llvm-875adb400754bb331d3540af67c94577ff58e8c8.tar.gz llvm-875adb400754bb331d3540af67c94577ff58e8c8.tar.bz2 |
Host: Internalize computeHostNumPhysicalCores/computeHostNumHardwareThreads
Windows computeHostNumPhysicalCores is defined by Threading.cpp. Leave it
unchanged.
Diffstat (limited to 'llvm/lib/Support/Unix/Threading.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Threading.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc index 99f64b4..6a67401 100644 --- a/llvm/lib/Support/Unix/Threading.inc +++ b/llvm/lib/Support/Unix/Threading.inc @@ -290,7 +290,7 @@ SetThreadPriorityResult llvm::set_thread_priority(ThreadPriority Priority) { #include <thread> -int computeHostNumHardwareThreads() { +static int computeHostNumHardwareThreads() { #if defined(__FreeBSD__) cpuset_t mask; CPU_ZERO(&mask); |