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

Linux: Fixed a compile error when building VST3 plug-ins with JUCE_MODAL_LOOPS_PERMITTED=0

This commit is contained in:
ed 2021-04-13 16:25:26 +01:00
parent 11d872ea1b
commit dbf5789cda

View file

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