core: fix initialization in single core, sync GPU mode

This commit is contained in:
Liam
2022-06-16 23:42:39 -04:00
parent a33e7c13fa
commit a6371fb69d
4 changed files with 13 additions and 0 deletions

View File

@ -43,6 +43,10 @@ public:
is_async_gpu = is_async;
}
void OnGpuReady() {
gpu_barrier->Sync();
}
void Initialize();
void Shutdown();
@ -81,6 +85,7 @@ private:
std::jthread host_thread;
};
std::unique_ptr<Common::Barrier> gpu_barrier{};
std::array<CoreData, Core::Hardware::NUM_CPU_CORES> core_data{};
bool is_async_gpu{};