summaryrefslogtreecommitdiffstats
path: root/src/common/thread.h
diff options
context:
space:
mode:
authorMerry <git@mary.rs>2022-04-07 20:30:55 +0200
committerMerry <git@mary.rs>2022-04-07 20:30:55 +0200
commitc589db6adde8e4706065b1ab00bd6814b39dc8bb (patch)
tree19430d5342df4de9b8fc196012e53b09fb8f5f41 /src/common/thread.h
parentMerge pull request #8161 from liamwhite/gl-s8d24 (diff)
downloadyuzu-c589db6adde8e4706065b1ab00bd6814b39dc8bb.tar
yuzu-c589db6adde8e4706065b1ab00bd6814b39dc8bb.tar.gz
yuzu-c589db6adde8e4706065b1ab00bd6814b39dc8bb.tar.bz2
yuzu-c589db6adde8e4706065b1ab00bd6814b39dc8bb.tar.lz
yuzu-c589db6adde8e4706065b1ab00bd6814b39dc8bb.tar.xz
yuzu-c589db6adde8e4706065b1ab00bd6814b39dc8bb.tar.zst
yuzu-c589db6adde8e4706065b1ab00bd6814b39dc8bb.zip
Diffstat (limited to 'src/common/thread.h')
-rw-r--r--src/common/thread.h2
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 {
class Event {
public:
void Set() {
- std::lock_guard lk{mutex};
+ std::scoped_lock lk{mutex};
if (!is_set) {
is_set = true;
condvar.notify_one();