set the generic thread priority once it's actually started

This commit is contained in:
Stephen Birarda 2015-07-17 09:24:00 -07:00
parent 97312f9898
commit 7d2495e289

View file

@ -35,7 +35,6 @@ void GenericThread::initialize(bool isThreaded, QThread::Priority priority) {
// match the thread name to our object name
_thread->setObjectName(objectName());
_thread->setPriority(priority);
// when the worker thread is started, call our engine's run..
connect(_thread, SIGNAL(started()), this, SLOT(threadRoutine()));
@ -44,6 +43,8 @@ void GenericThread::initialize(bool isThreaded, QThread::Priority priority) {
// Starts an event loop, and emits _thread->started()
_thread->start();
_thread->setPriority(priority);
}
}