Merge pull request #8736 from Pokechu22/dsp-lle-no-thread-hang

Fix bug 11920
This commit is contained in:
Mat M 2020-04-10 18:10:49 -04:00 committed by GitHub
commit 013e0528d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -343,9 +343,12 @@ void DSPLLE::PauseAndLock(bool do_lock, bool unpause_on_unlock)
{
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();
if (m_is_dsp_on_thread)
{
// 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