1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00

Linux: Improved message queue performance

This commit is contained in:
ed 2019-08-13 12:27:04 +01:00
parent 7dde0b26a7
commit 164aac7efa

View file

@ -38,7 +38,7 @@ public:
LinuxEventLoop::registerFdCallback (getReadHandle(),
[this] (int fd)
{
if (auto msg = popNextMessage (fd))
while (auto msg = popNextMessage (fd))
{
JUCE_TRY
{
@ -77,7 +77,7 @@ public:
}
//==============================================================================
JUCE_DECLARE_SINGLETON_SINGLETHREADED_MINIMAL (InternalMessageQueue)
JUCE_DECLARE_SINGLETON (InternalMessageQueue, false)
private:
CriticalSection lock;
@ -183,7 +183,7 @@ public:
}
//==============================================================================
JUCE_DECLARE_SINGLETON_SINGLETHREADED_MINIMAL (InternalRunLoop)
JUCE_DECLARE_SINGLETON (InternalRunLoop, false)
private:
CriticalSection lock;