mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 20:50:09 +08:00
Improve thread usage
This commit is contained in:
parent
378d59b045
commit
0c0e8d4031
@ -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!";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user