summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu_thread.h
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2021-04-07 13:57:49 +0200
committerMarkus Wick <markus@selfnet.de>2021-04-07 22:38:52 +0200
commite6fb49fa4bb2864702abcefc14f6bb62eaba7a7e (patch)
tree6cad1f7c35b6f9c539fbb9ad0fa2a1359a543a97 /src/video_core/gpu_thread.h
parentvideo_core/gpu_thread: Implement a ShutDown method. (diff)
downloadyuzu-e6fb49fa4bb2864702abcefc14f6bb62eaba7a7e.tar
yuzu-e6fb49fa4bb2864702abcefc14f6bb62eaba7a7e.tar.gz
yuzu-e6fb49fa4bb2864702abcefc14f6bb62eaba7a7e.tar.bz2
yuzu-e6fb49fa4bb2864702abcefc14f6bb62eaba7a7e.tar.lz
yuzu-e6fb49fa4bb2864702abcefc14f6bb62eaba7a7e.tar.xz
yuzu-e6fb49fa4bb2864702abcefc14f6bb62eaba7a7e.tar.zst
yuzu-e6fb49fa4bb2864702abcefc14f6bb62eaba7a7e.zip
Diffstat (limited to 'src/video_core/gpu_thread.h')
-rw-r--r--src/video_core/gpu_thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h
index d384164de..cb901c22a 100644
--- a/src/video_core/gpu_thread.h
+++ b/src/video_core/gpu_thread.h
@@ -101,7 +101,8 @@ struct CommandDataContainer {
struct SynchState final {
std::atomic_bool is_running{true};
- using CommandQueue = Common::MPSCQueue<CommandDataContainer>;
+ using CommandQueue = Common::SPSCQueue<CommandDataContainer>;
+ std::mutex write_lock;
CommandQueue queue;
u64 last_fence{};
std::atomic<u64> signaled_fence{};