Browse Source

fuse_loop.cpp

Antonio SJ Musumeci 1 week ago
parent
commit
8356579d2a
  1. 5
      libfuse/lib/fuse_loop.cpp

5
libfuse/lib/fuse_loop.cpp

@ -197,7 +197,6 @@ _calculate_thread_count(const int raw_thread_count_)
{ {
int thread_count; int thread_count;
thread_count = 4;
if(raw_thread_count_ == 0) if(raw_thread_count_ == 0)
{ {
thread_count = std::thread::hardware_concurrency(); thread_count = std::thread::hardware_concurrency();
@ -212,6 +211,10 @@ _calculate_thread_count(const int raw_thread_count_)
{ {
thread_count = raw_thread_count_; thread_count = raw_thread_count_;
} }
else
{
thread_count = 4;
}
if(thread_count <= 0) if(thread_count <= 0)
thread_count = 1; thread_count = 1;

Loading…
Cancel
Save