Skip to content
Permalink
Browse files

Signal DSP thread after unlocking DSP mutex

  • Loading branch information
CookiePLMonster committed Nov 22, 2019
1 parent e30ff7c commit 5be9505ab387315585e407af9fb9a589ece6d688
Showing with 8 additions and 0 deletions.
  1. +8 −0 Source/Core/Core/HW/DSPLLE/DSPLLE.cpp
@@ -336,8 +336,16 @@ u32 DSPLLE::DSP_UpdateRate()
void DSPLLE::PauseAndLock(bool do_lock, bool unpause_on_unlock)
{
if (do_lock)
{
m_dsp_thread_mutex.lock();
}
else
{
m_dsp_thread_mutex.unlock();

// Signal the DSP thread so it can perform any outstanding work now (if any)
s_ppc_event.Wait();
s_dsp_event.Set();
}
}
} // namespace DSP::LLE

0 comments on commit 5be9505

Please sign in to comment.
You can’t perform that action at this time.