Core: Fix non-debugger build

This commit is contained in:
Vicki Pfau 2022-04-03 02:58:03 -07:00
parent bc9bb43f88
commit 7ace2ac14f
1 changed files with 2 additions and 0 deletions

View File

@ -92,12 +92,14 @@ static void _wait(struct mCoreThreadInternal* threadContext) {
MutexUnlock(&threadContext->sync.audioBufferMutex);
}
#ifdef USE_DEBUGGERS
if (threadContext->core && threadContext->core->debugger) {
struct mDebugger* debugger = threadContext->core->debugger;
if (debugger->interrupt) {
debugger->interrupt(debugger);
}
}
#endif
MutexLock(&threadContext->stateMutex);
ConditionWake(&threadContext->stateCond);