aboutsummaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-06-16 23:42:39 -0400
committerLiam <byteslice@airmail.cc>2022-06-16 23:43:35 -0400
commita6371fb69dc87a65b766a2a274e6cf25459b8975 (patch)
tree5da9f8475543baf027cb0885bb35f06258c48d06 /src/core/cpu_manager.h
parenta33e7c13fa0eb9719090f766e328bdd72821f91f (diff)
core: fix initialization in single core, sync GPU mode
Diffstat (limited to 'src/core/cpu_manager.h')
-rw-r--r--src/core/cpu_manager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/cpu_manager.h b/src/core/cpu_manager.h
index 681bdaf19c..f0751fc588 100644
--- a/src/core/cpu_manager.h
+++ b/src/core/cpu_manager.h
@@ -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{};