mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-13 12:48:23 -04:00
ffs
This commit is contained in:
parent
93151f3b59
commit
4d8ee05f5c
1 changed files with 3 additions and 1 deletions
|
|
@ -27,7 +27,9 @@ void CpuManager::Initialize() {
|
||||||
num_cores = is_multicore ? Core::Hardware::NUM_CPU_CORES : 1;
|
num_cores = is_multicore ? Core::Hardware::NUM_CPU_CORES : 1;
|
||||||
gpu_barrier.emplace(num_cores + 1);
|
gpu_barrier.emplace(num_cores + 1);
|
||||||
for (std::size_t core = 0; core < num_cores; core++)
|
for (std::size_t core = 0; core < num_cores; core++)
|
||||||
core_data[core].host_thread = std::jthread(&CpuManager::RunThread, core);
|
core_data[core].host_thread = std::jthread([this, core](std::stop_token token) {
|
||||||
|
RunThread(token, core);
|
||||||
|
}, core);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CpuManager::Shutdown() {
|
void CpuManager::Shutdown() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue