diff options
| author | 2022-04-08 14:01:42 -0700 | |
|---|---|---|
| committer | 2022-04-08 14:01:42 -0700 | |
| commit | 04efd729d6b86b133d1ccacfcab77235e247f766 (patch) | |
| tree | 2a896020311d81e739adf0d2803d589f88ece313 /src/video_core/gpu_thread.cpp | |
| parent | Merge pull request #8173 from Morph1984/msvc-warn-unused-fn (diff) | |
| parent | core/hle: Standardize scoped_lock initializers (diff) | |
| download | yuzu-04efd729d6b86b133d1ccacfcab77235e247f766.tar.gz yuzu-04efd729d6b86b133d1ccacfcab77235e247f766.tar.xz yuzu-04efd729d6b86b133d1ccacfcab77235e247f766.zip | |
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.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, | |||
| 56 | if (next.block) { | 56 | if (next.block) { |
| 57 | // We have to lock the write_lock to ensure that the condition_variable wait not get a | 57 | // We have to lock the write_lock to ensure that the condition_variable wait not get a |
| 58 | // race between the check and the lock itself. | 58 | // race between the check and the lock itself. |
| 59 | std::lock_guard lk(state.write_lock); | 59 | std::scoped_lock lk{state.write_lock}; |
| 60 | state.cv.notify_all(); | 60 | state.cv.notify_all(); |
| 61 | } | 61 | } |
| 62 | } | 62 | } |