From 5a5ad43d5dadd74792b8d3d73be62df988bca78e Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 11 Dec 2014 22:34:07 -0800 Subject: [PATCH] GBA Thread: Wake up threads waiting for frames when ending a GBA thread --- src/gba/gba-thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gba/gba-thread.c b/src/gba/gba-thread.c index ecab5294f..1cf9006c5 100644 --- a/src/gba/gba-thread.c +++ b/src/gba/gba-thread.c @@ -365,6 +365,7 @@ void GBAThreadEnd(struct GBAThread* threadContext) { threadContext->sync.videoFrameWait = false; threadContext->sync.videoFrameOn = false; ConditionWake(&threadContext->sync.videoFrameRequiredCond); + ConditionWake(&threadContext->sync.videoFrameAvailableCond); MutexUnlock(&threadContext->sync.videoFrameMutex); }