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
26c21e6915
commit
5a5ad43d5d
|
@ -365,6 +365,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