mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
CPU_Manager: Correct stopping on SingleCore.
This commit is contained in:
parent
db68fba4a6
commit
1a5f2e290b
1 changed files with 8 additions and 3 deletions
|
@ -39,9 +39,14 @@ void CpuManager::Initialize() {
|
||||||
void CpuManager::Shutdown() {
|
void CpuManager::Shutdown() {
|
||||||
running_mode = false;
|
running_mode = false;
|
||||||
Pause(false);
|
Pause(false);
|
||||||
for (std::size_t core = 0; core < Core::Hardware::NUM_CPU_CORES; core++) {
|
if (is_multicore) {
|
||||||
core_data[core].host_thread->join();
|
for (std::size_t core = 0; core < Core::Hardware::NUM_CPU_CORES; core++) {
|
||||||
core_data[core].host_thread.reset();
|
core_data[core].host_thread->join();
|
||||||
|
core_data[core].host_thread.reset();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
core_data[0].host_thread->join();
|
||||||
|
core_data[0].host_thread.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue