mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +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
|
Configs::dataStore->save_control_no_save = true; // don't change datastore after this line
|
||||||
profile_stop(false, true);
|
profile_stop(false, true);
|
||||||
|
|
||||||
QMutex coreKillMu;
|
runOnThread([=, this]()
|
||||||
coreKillMu.lock();
|
|
||||||
runOnThread([=, this, &coreKillMu]()
|
|
||||||
{
|
{
|
||||||
core_process->Kill();
|
core_process->Kill();
|
||||||
coreKillMu.unlock();
|
}, DS_cores, true);
|
||||||
}, DS_cores);
|
|
||||||
coreKillMu.lock();
|
|
||||||
coreKillMu.unlock();
|
|
||||||
|
|
||||||
mu_exit.unlock();
|
mu_exit.unlock();
|
||||||
qDebug() << "prepare exit done!";
|
qDebug() << "prepare exit done!";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user