all repos — mgba @ 6b41d91e69463ceab0293e8272413884be961eae

mGBA Game Boy Advance Emulator

Qt: Fix excess wakeups in VideoProxy
Vicki Pfau vi@endrift.com
Tue, 28 May 2019 23:15:15 -0700
commit

6b41d91e69463ceab0293e8272413884be961eae

parent

baeba633ee6a61b45e99ddc35599317eb6609b32

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/VideoProxy.cppsrc/platform/qt/VideoProxy.cpp

@@ -62,7 +62,6 @@ m_toThreadCond.wakeAll();

m_fromThreadCond.wait(&m_mutex); m_mutex.unlock(); } - emit dataAvailable(); return true; }

@@ -109,6 +108,7 @@ }

void VideoProxy::wake(int y) { if ((y & 15) == 15) { + emit dataAvailable(); m_toThreadCond.wakeAll(); } }