Skip to content

Commit

Permalink
Set priority only after thread is running
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Sep 8, 2020
1 parent b1c12ce commit 47b972c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qrenderdoc/Windows/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ MainWindow::MainWindow(ICaptureContext &ctx) : QMainWindow(NULL), ui(new Ui::Mai
QEventLoop loop;
loop.exec();
});
m_NetManagerThread->thread()->setPriority(QThread::LowPriority);
m_NetManagerThread->moveObjectToThread(m_NetWorker);
m_NetManagerThread->start();
m_NetManagerThread->thread()->setPriority(QThread::LowPriority);

// set up cross-thread signal/slot connections
QObject::connect(this, &MainWindow::networkRequestGet, m_NetWorker, &NetworkWorker::get,
Expand Down

0 comments on commit 47b972c

Please sign in to comment.