mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 02:38:37 +12:00
Minor progress dialog refactoring
Add rsx::overlays::progress_dialog class (identical to message_dialog). Don't use Emu.CallAfter() for native dialogs. Make g_progr_ptotal waitable.
This commit is contained in:
parent
963d150e93
commit
6f1f75bc8f
2 changed files with 42 additions and 30 deletions
|
@ -422,7 +422,7 @@ void spu_cache::initialize()
|
|||
// Initialize progress dialog (wait for previous progress done)
|
||||
while (g_progr_ptotal)
|
||||
{
|
||||
std::this_thread::sleep_for(5ms);
|
||||
g_progr_ptotal.wait<atomic_wait::op_ne>(0);
|
||||
}
|
||||
|
||||
g_progr_ptotal += ::size32(func_list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue