Revision d4adee7851790dd6949424de083756f49af891db authored by David Faure on 15 March 2013, 18:48:59 UTC, committed by The Qt Project on 23 March 2013, 01:06:47 UTC
The value of priority was read without the mutex locked, from within
the thread.

Had to extract a QThreadPrivate::setPriority method so that it can be called
with the mutex already locked. So if the main thread calls setPriority
while the thread is starting, it will be either be before or after the
"re-set priority" code at thread startup, but at least not in the middle of it.

Change-Id: I7a054f68623f61482c749274da66f3b2dcd8bcee
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
1 parent c550a5d
Raw File
.tag
$Format:%H$
back to top