GBA Thread: Wake up threads waiting for frames when ending a GBA thread

This commit is contained in:
Jeffrey Pfau 2014-12-11 22:34:07 -08:00
parent 7faee5a426
commit 31f0e179c0
1 changed files with 1 additions and 0 deletions

View File

@ -368,6 +368,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);
}