mirror of https://github.com/mgba-emu/mgba.git
Core: Fix thread not waking up properly on canceling request
This commit is contained in:
parent
2037e97fc9
commit
61172d837f
|
@ -140,7 +140,7 @@ static void _sendRequest(struct mCoreThreadInternal* threadContext, enum mCoreTh
|
|||
static void _cancelRequest(struct mCoreThreadInternal* threadContext, enum mCoreThreadRequest request) {
|
||||
threadContext->requested &= ~request;
|
||||
_pokeRequest(threadContext);
|
||||
ConditionWake(&threadContext->stateOffThreadCond);
|
||||
ConditionWake(&threadContext->stateOnThreadCond);
|
||||
}
|
||||
|
||||
void _frameStarted(void* context) {
|
||||
|
|
Loading…
Reference in New Issue