mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Fixup SPU/PPU Cache Abortion
This commit is contained in:
parent
ee869a49f4
commit
2a0278fbb1
@ -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.
|
// We don't want to open a cell dialog while a native progress dialog is still open.
|
||||||
while (u32 v = g_progr_ptotal)
|
while (u32 v = g_progr_ptotal)
|
||||||
{
|
{
|
||||||
|
if (Emu.IsStopped())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
g_progr_ptotal.wait(v);
|
g_progr_ptotal.wait(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -649,6 +649,11 @@ void spu_cache::initialize()
|
|||||||
// Initialize progress dialog (wait for previous progress done)
|
// Initialize progress dialog (wait for previous progress done)
|
||||||
while (u32 v = g_progr_ptotal)
|
while (u32 v = g_progr_ptotal)
|
||||||
{
|
{
|
||||||
|
if (Emu.IsStopped())
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
g_progr_ptotal.wait(v);
|
g_progr_ptotal.wait(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,6 +226,11 @@ void progress_dialog_server::operator()()
|
|||||||
native_dlg->set_text("Stopping. Please wait...");
|
native_dlg->set_text("Stopping. Please wait...");
|
||||||
native_dlg->refresh();
|
native_dlg->refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_progr_ptotal.exchange(0))
|
||||||
|
{
|
||||||
|
g_progr_ptotal.notify_all();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
progress_dialog_server::~progress_dialog_server()
|
progress_dialog_server::~progress_dialog_server()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user