mirror of https://github.com/mgba-emu/mgba.git
GBA: Replace MutexLock with MutexTryLock in _waitUntilNotState
This commit is contained in:
parent
51e9042f62
commit
0a6e2b49ab
|
@ -76,7 +76,7 @@ static void _waitUntilNotState(struct GBAThread* threadContext, enum ThreadState
|
|||
MutexUnlock(&threadContext->sync.videoFrameMutex);
|
||||
}
|
||||
|
||||
if (!MutexLock(&threadContext->sync.audioBufferMutex)) {
|
||||
if (!MutexTryLock(&threadContext->sync.audioBufferMutex)) {
|
||||
ConditionWake(&threadContext->sync.audioRequiredCond);
|
||||
MutexUnlock(&threadContext->sync.audioBufferMutex);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue