mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-23 11:27:38 +02:00
Use at least two worker threads
This commit is contained in:
parent
31e7375ed4
commit
33136df424
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ int main(int argc, char* argv[])
|
|||
streamServer->start();
|
||||
|
||||
if (num_threads < 0)
|
||||
num_threads = std::max(1, std::min(4, static_cast<int>(std::thread::hardware_concurrency())));
|
||||
num_threads = std::max(2, std::min(4, static_cast<int>(std::thread::hardware_concurrency())));
|
||||
LOG(INFO) << "number of threads: " << num_threads << ", hw threads: " << std::thread::hardware_concurrency() << "\n";
|
||||
|
||||
auto sig = install_signal_handler({SIGHUP, SIGTERM, SIGINT},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue