Optimized priority
This commit is contained in:
parent
c4ba7c8e4f
commit
b986c98f9c
3
main.cpp
3
main.cpp
@ -12,9 +12,6 @@ int main(int argc, char *argv[])
|
||||
QCoreApplication::setApplicationName("RepRaptor");
|
||||
QCoreApplication::setApplicationVersion(REPRAPTOR_VERSION);
|
||||
|
||||
//Set the priority, so the OS would not mess up serial communication
|
||||
QThread::currentThread()->setPriority(QThread::HighestPriority);
|
||||
|
||||
MainWindow w;
|
||||
w.show();
|
||||
|
||||
|
||||
@ -129,6 +129,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
connect(parserWorker, &Parser::receivedSDDone, this, &MainWindow::receivedSDDone);
|
||||
connect(parserWorker, &Parser::receivedSDUpdate, this, &MainWindow::updateSDStatus);
|
||||
parserThread->start();
|
||||
parserThread->setPriority(QThread::HighestPriority);
|
||||
|
||||
//Sender thread signal-slots and init
|
||||
senderWorker->moveToThread(senderThread);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user