summaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
authorGravatar Liam2022-06-16 23:42:39 -0400
committerGravatar Liam2022-06-16 23:43:35 -0400
commita6371fb69dc87a65b766a2a274e6cf25459b8975 (patch)
tree5da9f8475543baf027cb0885bb35f06258c48d06 /src/core/cpu_manager.h
parentMerge pull request #8472 from german77/tace (diff)
downloadyuzu-a6371fb69dc87a65b766a2a274e6cf25459b8975.tar.gz
yuzu-a6371fb69dc87a65b766a2a274e6cf25459b8975.tar.xz
yuzu-a6371fb69dc87a65b766a2a274e6cf25459b8975.zip
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 681bdaf19..f0751fc58 100644
--- a/src/core/cpu_manager.h
+++ b/src/core/cpu_manager.h
@@ -43,6 +43,10 @@ public:
43 is_async_gpu = is_async; 43 is_async_gpu = is_async;
44 } 44 }
45 45
46 void OnGpuReady() {
47 gpu_barrier->Sync();
48 }
49
46 void Initialize(); 50 void Initialize();
47 void Shutdown(); 51 void Shutdown();
48 52
@@ -81,6 +85,7 @@ private:
81 std::jthread host_thread; 85 std::jthread host_thread;
82 }; 86 };
83 87
88 std::unique_ptr<Common::Barrier> gpu_barrier{};
84 std::array<CoreData, Core::Hardware::NUM_CPU_CORES> core_data{}; 89 std::array<CoreData, Core::Hardware::NUM_CPU_CORES> core_data{};
85 90
86 bool is_async_gpu{}; 91 bool is_async_gpu{};