all repos — mgba @ 31f0e179c028ee0d33cd9891d7bf667b26dfe087

mGBA Game Boy Advance Emulator

GBA Thread: Wake up threads waiting for frames when ending a GBA thread
Jeffrey Pfau jeffrey@endrift.com
Thu, 11 Dec 2014 22:34:07 -0800
commit

31f0e179c028ee0d33cd9891d7bf667b26dfe087

parent

7faee5a4266ccb33cfae6ac6cac55e65dac9ecdb

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

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -368,6 +368,7 @@ MutexLock(&threadContext->sync.videoFrameMutex);

threadContext->sync.videoFrameWait = false; threadContext->sync.videoFrameOn = false; ConditionWake(&threadContext->sync.videoFrameRequiredCond); + ConditionWake(&threadContext->sync.videoFrameAvailableCond); MutexUnlock(&threadContext->sync.videoFrameMutex); }