summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-01-04 02:31:51 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2022-01-04 02:47:26 +0100
commitc17938f96ba9a3f2571387b21328743db8050250 (patch)
tree23c8280d1aaf458a1abbad272e8facc3bd58eb36 /src/video_core/gpu.cpp
parentRevert "Merge pull request #7668 from ameerj/fence-stop-token" (diff)
downloadyuzu-c17938f96ba9a3f2571387b21328743db8050250.tar
yuzu-c17938f96ba9a3f2571387b21328743db8050250.tar.gz
yuzu-c17938f96ba9a3f2571387b21328743db8050250.tar.bz2
yuzu-c17938f96ba9a3f2571387b21328743db8050250.tar.lz
yuzu-c17938f96ba9a3f2571387b21328743db8050250.tar.xz
yuzu-c17938f96ba9a3f2571387b21328743db8050250.tar.zst
yuzu-c17938f96ba9a3f2571387b21328743db8050250.zip
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 8788f5148..44fda27ef 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -312,6 +312,12 @@ struct GPU::Impl {
cpu_context->MakeCurrent();
}
+ void NotifyShutdown() {
+ std::unique_lock lk{sync_mutex};
+ shutting_down.store(true, std::memory_order::relaxed);
+ sync_cv.notify_all();
+ }
+
/// Obtain the CPU Context
void ObtainContext() {
cpu_context->MakeCurrent();
@@ -859,6 +865,10 @@ void GPU::Start() {
impl->Start();
}
+void GPU::NotifyShutdown() {
+ impl->NotifyShutdown();
+}
+
void GPU::ObtainContext() {
impl->ObtainContext();
}