Browse Source

Thread: Fix an issue setting the priority of a realtime thread

v7.0.9
Anthony Nicholls 2 years ago
parent
commit
8640dd004d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/threads/juce_Thread.h

+ 1
- 1
modules/juce_core/threads/juce_Thread.h View File

@@ -84,7 +84,7 @@ public:
[[nodiscard]] RealtimeOptions withPriority (int newPriority) const
{
jassert (isPositiveAndNotGreaterThan (newPriority, 10));
return withMember (*this, &RealtimeOptions::priority, juce::jlimit (newPriority, 0, 10));
return withMember (*this, &RealtimeOptions::priority, juce::jlimit (0, 10, newPriority));
}
/** Specify the expected amount of processing time required each time the thread wakes up.


Loading…
Cancel
Save