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
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba-thread.c
→
src/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); }