OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4acc4b
)
do not set priority member from QThread::setPriority() prior to pthread_setschedparam...
author
Ivailo Monev
<xakepa10@laimg.moc>
Sat, 18 Jan 2020 03:28:26 +0000
(
03:28
+0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Sat, 18 Jan 2020 03:28:26 +0000
(
03:28
+0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/thread/qthread_unix.cpp
patch
|
blob
|
history
diff --git
a/src/core/thread/qthread_unix.cpp
b/src/core/thread/qthread_unix.cpp
index
5711b29
..
e91383f
100644
(file)
--- a/
src/core/thread/qthread_unix.cpp
+++ b/
src/core/thread/qthread_unix.cpp
@@
-496,8
+496,6
@@
void QThread::setPriority(Priority priority)
return;
}
- d->priority = priority;
-
// copied from start() with a few modifications:
#ifdef QT_HAS_THREAD_PRIORITY_SCHEDULING
@@
-534,6
+532,8
@@
void QThread::setPriority(Priority priority)
Q_UNUSED(status);
# endif // SCHED_IDLE
#endif
+
+ d->priority = priority;
}
#include "moc_qthread.h"