all repos — mgba @ e62c24c588fcdaf6467dd02870f5cda3d5d8c9a2

mGBA Game Boy Advance Emulator

Feature: Clear thread proxy queue on reset (fixes #2080)
Vicki Pfau vi@endrift.com
Thu, 25 Mar 2021 23:16:39 -0700
commit

e62c24c588fcdaf6467dd02870f5cda3d5d8c9a2

parent

9ac93662579e12e7a19f1413d137cc5329ed1e32

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

jump to
M src/feature/thread-proxy.csrc/feature/thread-proxy.c

@@ -60,6 +60,7 @@ while (proxyRenderer->threadState == PROXY_THREAD_BUSY) {

ConditionWake(&proxyRenderer->toThreadCond); ConditionWait(&proxyRenderer->fromThreadCond, &proxyRenderer->mutex); } + RingFIFOClear(&proxyRenderer->dirtyQueue); MutexUnlock(&proxyRenderer->mutex); }