From 7d2495e289d59ed4443110c4beea9da9f847b508 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 17 Jul 2015 09:24:00 -0700 Subject: [PATCH] set the generic thread priority once it's actually started --- libraries/shared/src/GenericThread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/shared/src/GenericThread.cpp b/libraries/shared/src/GenericThread.cpp index 9c1c7c590c..be984d5899 100644 --- a/libraries/shared/src/GenericThread.cpp +++ b/libraries/shared/src/GenericThread.cpp @@ -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); } }