1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-07 04:10:08 +00:00

Fix for setting thread priority while the thread isn't running.

This commit is contained in:
jules 2014-01-14 15:44:34 +00:00
parent 633ff931d6
commit 01b9ff0843

View file

@ -221,7 +221,7 @@ bool Thread::setPriority (const int newPriority)
const ScopedLock sl (startStopLock);
if (setThreadPriority (threadHandle, newPriority))
if ((! isThreadRunning()) || setThreadPriority (threadHandle, newPriority))
{
threadPriority = newPriority;
return true;