summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-09-26 22:40:13 +0200
committerGitHub <noreply@github.com>2021-09-26 22:40:13 +0200
commit5114819b6bb4f5d6d239bcd8261c86a6f5b4c5c7 (patch)
tree01c0db585182966b575c2273e2804246df377f52
parentMerge pull request #7085 from Morph1984/bsd-read-stub (diff)
parentvideo_core: Fix jthread related hangs when stopping emulation (diff)
downloadyuzu-5114819b6bb4f5d6d239bcd8261c86a6f5b4c5c7.tar
yuzu-5114819b6bb4f5d6d239bcd8261c86a6f5b4c5c7.tar.gz
yuzu-5114819b6bb4f5d6d239bcd8261c86a6f5b4c5c7.tar.bz2
yuzu-5114819b6bb4f5d6d239bcd8261c86a6f5b4c5c7.tar.lz
yuzu-5114819b6bb4f5d6d239bcd8261c86a6f5b4c5c7.tar.xz
yuzu-5114819b6bb4f5d6d239bcd8261c86a6f5b4c5c7.tar.zst
yuzu-5114819b6bb4f5d6d239bcd8261c86a6f5b4c5c7.zip
-rw-r--r--src/core/core.cpp2
-rw-r--r--src/video_core/renderer_vulkan/vk_scheduler.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 54ebed2c1..50d5dab4b 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -305,7 +305,6 @@ struct System::Impl {
is_powered_on = false;
exit_lock = false;
- gpu_core.reset();
services.reset();
service_manager.reset();
cheat_engine.reset();
@@ -315,6 +314,7 @@ struct System::Impl {
core_timing.Shutdown();
app_loader.reset();
perf_stats.reset();
+ gpu_core.reset();
kernel.Shutdown();
memory.Reset();
applet_manager.ClearAll();
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.h b/src/video_core/renderer_vulkan/vk_scheduler.h
index bd22e4e83..85fc1712f 100644
--- a/src/video_core/renderer_vulkan/vk_scheduler.h
+++ b/src/video_core/renderer_vulkan/vk_scheduler.h
@@ -212,7 +212,6 @@ private:
vk::CommandBuffer current_cmdbuf;
std::unique_ptr<CommandChunk> chunk;
- std::jthread worker_thread;
State state;
@@ -226,6 +225,7 @@ private:
std::mutex work_mutex;
std::condition_variable_any work_cv;
std::condition_variable wait_cv;
+ std::jthread worker_thread;
};
} // namespace Vulkan