mirror of https://github.com/mgba-emu/mgba.git
GBA Thread: Wake up threads waiting for frames when ending a GBA thread
This commit is contained in:
parent
7faee5a426
commit
31f0e179c0
|
@ -368,6 +368,7 @@ void GBAThreadEnd(struct GBAThread* threadContext) {
|
||||||
threadContext->sync.videoFrameWait = false;
|
threadContext->sync.videoFrameWait = false;
|
||||||
threadContext->sync.videoFrameOn = false;
|
threadContext->sync.videoFrameOn = false;
|
||||||
ConditionWake(&threadContext->sync.videoFrameRequiredCond);
|
ConditionWake(&threadContext->sync.videoFrameRequiredCond);
|
||||||
|
ConditionWake(&threadContext->sync.videoFrameAvailableCond);
|
||||||
MutexUnlock(&threadContext->sync.videoFrameMutex);
|
MutexUnlock(&threadContext->sync.videoFrameMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue