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)