Implement thread_state::errored

State after calling thread emergency_exit() function.
Also default-construct thread result in this case.
This commit is contained in:
Nekotekina 2020-03-20 20:18:08 +03:00
parent eb2dcaf602
commit c577bd2111
5 changed files with 50 additions and 15 deletions

View file

@ -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;