aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-08 14:01:42 -0700
committerGitHub <noreply@github.com>2022-04-08 14:01:42 -0700
commit27e7b14429e5267de209d964a4ed7e47c2c01844 (patch)
tree2a896020311d81e739adf0d2803d589f88ece313 /src/video_core/gpu_thread.cpp
parent3c0470bfb264c3b92900bcc5777da816d15b60b5 (diff)
parent9144a342ca04b3f48293ae1b4987c997aa5c2e41 (diff)
Merge pull request #8169 from merryhime/scoped_lock
Replace lock_guard with scoped_lock
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-rw-r--r--src/video_core/gpu_thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 9547f277a0..4e89999157 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -56,7 +56,7 @@ static void RunThread(std::stop_token stop_token, Core::System& system,
if (next.block) {
// We have to lock the write_lock to ensure that the condition_variable wait not get a
// race between the check and the lock itself.
- std::lock_guard lk(state.write_lock);
+ std::scoped_lock lk{state.write_lock};
state.cv.notify_all();
}
}