From 7cf3bcdf26aa8fa871c2a1bdfb83898cf242b982 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 15 Apr 2026 15:04:39 -0500 Subject: [PATCH] Auto-commit fuse_loop.cpp --- vendored/libfuse/lib/fuse_loop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendored/libfuse/lib/fuse_loop.cpp b/vendored/libfuse/lib/fuse_loop.cpp index f310cfec..41c29abb 100644 --- a/vendored/libfuse/lib/fuse_loop.cpp +++ b/vendored/libfuse/lib/fuse_loop.cpp @@ -191,12 +191,12 @@ _calculate_thread_count(const int raw_thread_count_) if(raw_thread_count_ == 0) { - thread_count = std::thread::hardware_concurrency(); + thread_count = ::_nproc(); thread_count = std::min(8,thread_count); } else if(raw_thread_count_ < 0) { - thread_count = (std::thread::hardware_concurrency() / -raw_thread_count_); + thread_count = (::_nproc() / -raw_thread_count_); thread_count = std::max(1,thread_count); } else if(raw_thread_count_ > 0)