mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix excess wakeups in VideoProxy
This commit is contained in:
parent
baeba633ee
commit
6b41d91e69
|
@ -62,7 +62,6 @@ bool VideoProxy::writeData(const void* data, size_t length) {
|
||||||
m_fromThreadCond.wait(&m_mutex);
|
m_fromThreadCond.wait(&m_mutex);
|
||||||
m_mutex.unlock();
|
m_mutex.unlock();
|
||||||
}
|
}
|
||||||
emit dataAvailable();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,6 +108,7 @@ void VideoProxy::wait() {
|
||||||
|
|
||||||
void VideoProxy::wake(int y) {
|
void VideoProxy::wake(int y) {
|
||||||
if ((y & 15) == 15) {
|
if ((y & 15) == 15) {
|
||||||
|
emit dataAvailable();
|
||||||
m_toThreadCond.wakeAll();
|
m_toThreadCond.wakeAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue