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

For for Component::beginDragAutoRepeat(). Fix for ppc atomics compilation. Fix for jucer image code generation.

This commit is contained in:
Julian Storer 2010-07-17 11:36:12 -05:00
parent 216d258ceb
commit bd4df346bc
9 changed files with 31 additions and 49 deletions

View file

@ -95,16 +95,6 @@ bool juce_setThreadPriority (void* handle, int priority)
if (pthread_getschedparam ((pthread_t) handle, &policy, &param) == 0
&& policy != SCHED_OTHER)
{
int minp = sched_get_priority_min (policy);
int maxp = sched_get_priority_max (policy);
int pri = ((maxp - minp) / 2) * (priority - 1) / 9;
if (param.sched_priority >= (minp + (maxp - minp) / 2))
param.sched_priority = minp + ((maxp - minp) / 2) + pri; // (realtime)
else
param.sched_priority = minp + pri; // (high)
param.sched_priority = jlimit (1, 127, 1 + (priority * 126) / 11);
return pthread_setschedparam ((pthread_t) handle, policy, &param) == 0;
}