diff options
author | Merry <git@mary.rs> | 2022-04-07 20:32:40 +0200 |
---|---|---|
committer | Merry <git@mary.rs> | 2022-04-07 20:44:07 +0200 |
commit | bbc585881a69b899bfaa9c2982c87a2034d4331e (patch) | |
tree | aa24a84a9a885da4a112d943ec267b02bba83e39 /src/video_core/gpu_thread.cpp | |
parent | input_common: Replace lock_guard with scoped_lock (diff) | |
download | yuzu-bbc585881a69b899bfaa9c2982c87a2034d4331e.tar yuzu-bbc585881a69b899bfaa9c2982c87a2034d4331e.tar.gz yuzu-bbc585881a69b899bfaa9c2982c87a2034d4331e.tar.bz2 yuzu-bbc585881a69b899bfaa9c2982c87a2034d4331e.tar.lz yuzu-bbc585881a69b899bfaa9c2982c87a2034d4331e.tar.xz yuzu-bbc585881a69b899bfaa9c2982c87a2034d4331e.tar.zst yuzu-bbc585881a69b899bfaa9c2982c87a2034d4331e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/gpu_thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp index 9547f277a..4e8999915 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(); } } |