mirror of
https://github.com/overte-org/overte.git
synced 2025-04-29 21:22:46 +02:00
set the generic thread priority once it's actually started
This commit is contained in:
parent
97312f9898
commit
7d2495e289
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue