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:
parent
633ff931d6
commit
01b9ff0843
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue