mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Implement thread_state::errored
State after calling thread emergency_exit() function. Also default-construct thread result in this case.
This commit is contained in:
parent
eb2dcaf602
commit
c577bd2111
5 changed files with 50 additions and 15 deletions
|
|
@ -257,7 +257,7 @@ namespace rsx
|
|||
}
|
||||
else
|
||||
{
|
||||
while (!exit && thread_ctrl::state() == thread_state::created)
|
||||
while (!exit && thread_ctrl::state() <= thread_state::aborting)
|
||||
{
|
||||
refresh();
|
||||
|
||||
|
|
|
|||
|
|
@ -621,7 +621,7 @@ bool Emulator::InstallPkg(const std::string& path)
|
|||
|
||||
{
|
||||
// Wait for the completion
|
||||
while (std::this_thread::sleep_for(5ms), worker != thread_state::finished)
|
||||
while (std::this_thread::sleep_for(5ms), worker <= thread_state::aborting)
|
||||
{
|
||||
// TODO: update unified progress dialog
|
||||
double pval = progress;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue