summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
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 {
312 cpu_context->MakeCurrent(); 312 cpu_context->MakeCurrent();
313 } 313 }
314 314
315 void NotifyShutdown() {
316 std::unique_lock lk{sync_mutex};
317 shutting_down.store(true, std::memory_order::relaxed);
318 sync_cv.notify_all();
319 }
320
315 /// Obtain the CPU Context 321 /// Obtain the CPU Context
316 void ObtainContext() { 322 void ObtainContext() {
317 cpu_context->MakeCurrent(); 323 cpu_context->MakeCurrent();
@@ -859,6 +865,10 @@ void GPU::Start() {
859 impl->Start(); 865 impl->Start();
860} 866}
861 867
868void GPU::NotifyShutdown() {
869 impl->NotifyShutdown();
870}
871
862void GPU::ObtainContext() { 872void GPU::ObtainContext() {
863 impl->ObtainContext(); 873 impl->ObtainContext();
864} 874}