1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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

This commit is contained in:
Anthony Nicholls 2023-08-04 15:32:34 +01:00
parent 6d7bf9281a
commit 8640dd004d

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.