From dbf5789cda0b40ba141efbdc9c3af90d13f5e82e Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 13 Apr 2021 16:25:26 +0100 Subject: [PATCH] Linux: Fixed a compile error when building VST3 plug-ins with JUCE_MODAL_LOOPS_PERMITTED=0 --- .../utility/juce_LinuxMessageThread.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/juce_audio_plugin_client/utility/juce_LinuxMessageThread.h b/modules/juce_audio_plugin_client/utility/juce_LinuxMessageThread.h index 1e3fbc1ad5..b412caf0dd 100644 --- a/modules/juce_audio_plugin_client/utility/juce_LinuxMessageThread.h +++ b/modules/juce_audio_plugin_client/utility/juce_LinuxMessageThread.h @@ -30,6 +30,9 @@ namespace juce { +// Implemented in juce_linux_Messaging.cpp +bool dispatchNextMessageOnSystemQueue (bool returnIfNoPendingMessages); + class MessageThread { public: @@ -63,11 +66,11 @@ public: for (;;) { - if (shouldExit - || ! MessageManager::getInstance()->runDispatchLoopUntil (250)) - { + if (! dispatchNextMessageOnSystemQueue (true)) + Thread::sleep (1); + + if (shouldExit) break; - } } } };