Skip to content
Permalink
Browse files

Linux: Improved message queue performance

  • Loading branch information...
ed95 committed Aug 13, 2019
1 parent 7dde0b2 commit 164aac7efa22123e76468fd62ca289fa533f8934
Showing with 3 additions and 3 deletions.
  1. +3 −3 modules/juce_events/native/juce_linux_Messaging.cpp
@@ -38,7 +38,7 @@ class InternalMessageQueue
LinuxEventLoop::registerFdCallback (getReadHandle(),
[this] (int fd)
{
if (auto msg = popNextMessage (fd))
while (auto msg = popNextMessage (fd))
{
JUCE_TRY
{
@@ -77,7 +77,7 @@ class InternalMessageQueue
}

//==============================================================================
JUCE_DECLARE_SINGLETON_SINGLETHREADED_MINIMAL (InternalMessageQueue)
JUCE_DECLARE_SINGLETON (InternalMessageQueue, false)

private:
CriticalSection lock;
@@ -183,7 +183,7 @@ struct InternalRunLoop
}

//==============================================================================
JUCE_DECLARE_SINGLETON_SINGLETHREADED_MINIMAL (InternalRunLoop)
JUCE_DECLARE_SINGLETON (InternalRunLoop, false)

private:
CriticalSection lock;

0 comments on commit 164aac7

Please sign in to comment.
You can’t perform that action at this time.