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 26c21e6915
commit 5a5ad43d5d
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}