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

Thread: Introduce a new Thread backend

This is a breaking change - see BREAKING-CHANGES.txt
This commit is contained in:
chroma 2022-10-18 11:47:18 +01:00
parent 621e14d092
commit d3cff375be
39 changed files with 849 additions and 603 deletions

View file

@ -56,11 +56,11 @@ ThreadWithProgressWindow::~ThreadWithProgressWindow()
stopThread (timeOutMsWhenCancelling);
}
void ThreadWithProgressWindow::launchThread (int priority)
void ThreadWithProgressWindow::launchThread (Priority threadPriority)
{
JUCE_ASSERT_MESSAGE_THREAD
startThread (priority);
startThread (threadPriority);
startTimer (100);
{
@ -105,9 +105,9 @@ void ThreadWithProgressWindow::timerCallback()
void ThreadWithProgressWindow::threadComplete (bool) {}
#if JUCE_MODAL_LOOPS_PERMITTED
bool ThreadWithProgressWindow::runThread (const int priority)
bool ThreadWithProgressWindow::runThread (Priority threadPriority)
{
launchThread (priority);
launchThread (threadPriority);
while (isTimerRunning())
MessageManager::getInstance()->runDispatchLoopUntil (5);