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:
parent
6d7bf9281a
commit
8640dd004d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue