mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 00:35:47 +00:00
CPU_Manager: Correct stopping on SingleCore.
This commit is contained in:
parent
d03d00c9c2
commit
5f8acb6397
1 changed files with 8 additions and 3 deletions
|
@ -39,10 +39,15 @@ void CpuManager::Initialize() {
|
|||
void CpuManager::Shutdown() {
|
||||
running_mode = false;
|
||||
Pause(false);
|
||||
if (is_multicore) {
|
||||
for (std::size_t core = 0; core < Core::Hardware::NUM_CPU_CORES; core++) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
std::function<void(void*)> CpuManager::GetGuestThreadStartFunc() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue