From 4570818cc06b3daa32bd6316267f795a3fd90a5b Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 22 Apr 2009 21:15:26 +0000 Subject: [PATCH] Small fix for ThreadPool priorities --- juce_amalgamated.cpp | 4 ++-- src/juce_core/threads/juce_ThreadPool.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/juce_amalgamated.cpp b/juce_amalgamated.cpp index b11a74319a..0aca63be98 100644 --- a/juce_amalgamated.cpp +++ b/juce_amalgamated.cpp @@ -15516,7 +15516,7 @@ ThreadPool::ThreadPool (const int numThreads_, threads[i] = new ThreadPoolThread (*this); if (! startThreadsOnlyWhenNeeded) - threads[i]->startThread(); + threads[i]->startThread (priority); } } @@ -15568,7 +15568,7 @@ void ThreadPool::addJob (ThreadPoolJob* const job) { if (! threads[i]->isThreadRunning()) { - threads[i]->startThread(); + threads[i]->startThread (priority); startedOne = true; } } diff --git a/src/juce_core/threads/juce_ThreadPool.cpp b/src/juce_core/threads/juce_ThreadPool.cpp index bfbb145729..c458c8cbd0 100644 --- a/src/juce_core/threads/juce_ThreadPool.cpp +++ b/src/juce_core/threads/juce_ThreadPool.cpp @@ -119,7 +119,7 @@ ThreadPool::ThreadPool (const int numThreads_, threads[i] = new ThreadPoolThread (*this); if (! startThreadsOnlyWhenNeeded) - threads[i]->startThread(); + threads[i]->startThread (priority); } } @@ -171,7 +171,7 @@ void ThreadPool::addJob (ThreadPoolJob* const job) { if (! threads[i]->isThreadRunning()) { - threads[i]->startThread(); + threads[i]->startThread (priority); startedOne = true; } }