1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Fixup SPU/PPU Cache Abortion

This commit is contained in:
Eladash 2023-08-06 12:24:32 +03:00 committed by Elad Ashkenazi
parent ee869a49f4
commit 2a0278fbb1
3 changed files with 15 additions and 0 deletions

View File

@ -1823,6 +1823,11 @@ void ppu_thread::cpu_task()
// We don't want to open a cell dialog while a native progress dialog is still open.
while (u32 v = g_progr_ptotal)
{
if (Emu.IsStopped())
{
return;
}
g_progr_ptotal.wait(v);
}

View File

@ -649,6 +649,11 @@ void spu_cache::initialize()
// Initialize progress dialog (wait for previous progress done)
while (u32 v = g_progr_ptotal)
{
if (Emu.IsStopped())
{
break;
}
g_progr_ptotal.wait(v);
}

View File

@ -226,6 +226,11 @@ void progress_dialog_server::operator()()
native_dlg->set_text("Stopping. Please wait...");
native_dlg->refresh();
}
if (g_progr_ptotal.exchange(0))
{
g_progr_ptotal.notify_all();
}
}
progress_dialog_server::~progress_dialog_server()