Optimized priority

This commit is contained in:
NeoTheFox 2015-03-26 15:33:32 +03:00
parent c4ba7c8e4f
commit b986c98f9c
2 changed files with 1 additions and 3 deletions

View File

@ -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();

View File

@ -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);