Browse Source

Small fix for ThreadPool priorities

tags/2021-05-28
jules 17 years ago
parent
commit
4570818cc0
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      juce_amalgamated.cpp
  2. +2
    -2
      src/juce_core/threads/juce_ThreadPool.cpp

+ 2
- 2
juce_amalgamated.cpp View File

@@ -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;
}
}


+ 2
- 2
src/juce_core/threads/juce_ThreadPool.cpp View File

@@ -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;
}
}


Loading…
Cancel
Save