Improve thread usage

This commit is contained in:
Nova 2025-10-22 03:25:21 +03:30
parent 378d59b045
commit 0c0e8d4031

View File

@ -979,15 +979,10 @@ void MainWindow::prepare_exit()
Configs::dataStore->save_control_no_save = true; // don't change datastore after this line
profile_stop(false, true);
QMutex coreKillMu;
coreKillMu.lock();
runOnThread([=, this, &coreKillMu]()
runOnThread([=, this]()
{
core_process->Kill();
coreKillMu.unlock();
}, DS_cores);
coreKillMu.lock();
coreKillMu.unlock();
}, DS_cores, true);
mu_exit.unlock();
qDebug() << "prepare exit done!";