mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
Signal DSP thread after unlocking DSP mutex
This commit is contained in:
parent
e30ff7c327
commit
5be9505ab3
1 changed files with 8 additions and 0 deletions
|
@ -336,8 +336,16 @@ u32 DSPLLE::DSP_UpdateRate()
|
||||||
void DSPLLE::PauseAndLock(bool do_lock, bool unpause_on_unlock)
|
void DSPLLE::PauseAndLock(bool do_lock, bool unpause_on_unlock)
|
||||||
{
|
{
|
||||||
if (do_lock)
|
if (do_lock)
|
||||||
|
{
|
||||||
m_dsp_thread_mutex.lock();
|
m_dsp_thread_mutex.lock();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
m_dsp_thread_mutex.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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} // namespace DSP::LLE
|
} // namespace DSP::LLE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue