diff options
| author | 2022-04-07 19:30:55 +0100 | |
|---|---|---|
| committer | 2022-04-07 19:30:55 +0100 | |
| commit | c589db6adde8e4706065b1ab00bd6814b39dc8bb (patch) | |
| tree | 19430d5342df4de9b8fc196012e53b09fb8f5f41 /src/common/thread.h | |
| parent | Merge pull request #8161 from liamwhite/gl-s8d24 (diff) | |
| download | yuzu-c589db6adde8e4706065b1ab00bd6814b39dc8bb.tar.gz yuzu-c589db6adde8e4706065b1ab00bd6814b39dc8bb.tar.xz yuzu-c589db6adde8e4706065b1ab00bd6814b39dc8bb.zip | |
common: Replace lock_guard with scoped_lock
Diffstat (limited to 'src/common/thread.h')
| -rw-r--r-- | src/common/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/thread.h b/src/common/thread.h index a8c17c71a..626609372 100644 --- a/src/common/thread.h +++ b/src/common/thread.h | |||
| @@ -17,7 +17,7 @@ namespace Common { | |||
| 17 | class Event { | 17 | class Event { |
| 18 | public: | 18 | public: |
| 19 | void Set() { | 19 | void Set() { |
| 20 | std::lock_guard lk{mutex}; | 20 | std::scoped_lock lk{mutex}; |
| 21 | if (!is_set) { | 21 | if (!is_set) { |
| 22 | is_set = true; | 22 | is_set = true; |
| 23 | condvar.notify_one(); | 23 | condvar.notify_one(); |