1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Merged some of the mac/linux pthread code. Fixes to the Expression class. Fix for CoreGraphics to get gradients working correctly for vertical/horizontal lines.

This commit is contained in:
Julian Storer 2010-08-19 17:17:53 +01:00
parent 3e30e09afa
commit 71ee73ead1
13 changed files with 615 additions and 560 deletions

View file

@ -188,18 +188,12 @@ bool juce_setThreadPriority (void* threadHandle, int priority)
{
int pri = THREAD_PRIORITY_TIME_CRITICAL;
if (priority < 1)
pri = THREAD_PRIORITY_IDLE;
else if (priority < 2)
pri = THREAD_PRIORITY_LOWEST;
else if (priority < 5)
pri = THREAD_PRIORITY_BELOW_NORMAL;
else if (priority < 7)
pri = THREAD_PRIORITY_NORMAL;
else if (priority < 9)
pri = THREAD_PRIORITY_ABOVE_NORMAL;
else if (priority < 10)
pri = THREAD_PRIORITY_HIGHEST;
if (priority < 1) pri = THREAD_PRIORITY_IDLE;
else if (priority < 2) pri = THREAD_PRIORITY_LOWEST;
else if (priority < 5) pri = THREAD_PRIORITY_BELOW_NORMAL;
else if (priority < 7) pri = THREAD_PRIORITY_NORMAL;
else if (priority < 9) pri = THREAD_PRIORITY_ABOVE_NORMAL;
else if (priority < 10) pri = THREAD_PRIORITY_HIGHEST;
if (threadHandle == 0)
threadHandle = GetCurrentThread();