Skip to content

Commit

Permalink
Allow 4 tagreader workers
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Nov 27, 2019
1 parent c1ec568 commit 793f6b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/libstrawberry-common/core/workerpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ WorkerPool<HandlerType>::WorkerPool(QObject *parent)
next_worker_(0),
next_id_(0) {

worker_count_ = qBound(1, QThread::idealThreadCount() / 2, 2);
worker_count_ = qBound(1, QThread::idealThreadCount() / 2, 4);
local_server_name_ = qApp->applicationName().toLower();

if (local_server_name_.isEmpty())
Expand Down
2 changes: 1 addition & 1 deletion src/core/tagreaderclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ TagReaderClient::TagReaderClient(QObject *parent) : QObject(parent), worker_pool
original_thread_ = thread();

worker_pool_->SetExecutableName(kWorkerExecutableName);
worker_pool_->SetWorkerCount(qBound(1, QThread::idealThreadCount() / 2, 2));
worker_pool_->SetWorkerCount(qBound(1, QThread::idealThreadCount() / 2, 4));
connect(worker_pool_, SIGNAL(WorkerFailedToStart()), SLOT(WorkerFailedToStart()));

}
Expand Down

0 comments on commit 793f6b0

Please sign in to comment.