GBA: Replace MutexLock with MutexTryLock in _waitUntilNotState
Jeffrey Pfau jeffrey@endrift.com
Thu, 12 Nov 2015 23:06:41 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/supervisor/thread.c
→
src/gba/supervisor/thread.c
@@ -76,7 +76,7 @@ ConditionWake(&threadContext->sync.videoFrameRequiredCond);
MutexUnlock(&threadContext->sync.videoFrameMutex); } - if (!MutexLock(&threadContext->sync.audioBufferMutex)) { + if (!MutexTryLock(&threadContext->sync.audioBufferMutex)) { ConditionWake(&threadContext->sync.audioRequiredCond); MutexUnlock(&threadContext->sync.audioBufferMutex); }