summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2018-07-14 19:57:13 +0200
committerJames Rowe <jroweboy@gmail.com>2018-07-14 19:57:13 +0200
commit6daebaaa5798ec7e104ac7a2221b1310a0ba0116 (patch)
tree29ed68ebb6cf2b2da1a14f922167b71dda624c14 /src
parentyuzu - Fix duplicate logs (diff)
downloadyuzu-6daebaaa5798ec7e104ac7a2221b1310a0ba0116.tar
yuzu-6daebaaa5798ec7e104ac7a2221b1310a0ba0116.tar.gz
yuzu-6daebaaa5798ec7e104ac7a2221b1310a0ba0116.tar.bz2
yuzu-6daebaaa5798ec7e104ac7a2221b1310a0ba0116.tar.lz
yuzu-6daebaaa5798ec7e104ac7a2221b1310a0ba0116.tar.xz
yuzu-6daebaaa5798ec7e104ac7a2221b1310a0ba0116.tar.zst
yuzu-6daebaaa5798ec7e104ac7a2221b1310a0ba0116.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/logging/backend.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index 242914c6a..5313b8510 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -83,8 +83,10 @@ private:
}
};
while (true) {
- std::unique_lock<std::mutex> lock(message_mutex);
- message_cv.wait(lock, [&] { return !running || message_queue.Pop(entry); });
+ {
+ std::unique_lock<std::mutex> lock(message_mutex);
+ message_cv.wait(lock, [&] { return !running || message_queue.Pop(entry); });
+ }
if (!running) {
break;
}
@@ -282,4 +284,4 @@ void FmtLogMessageImpl(Class log_class, Level log_level, const char* filename,
Impl::Instance().PushEntry(std::move(entry));
}
-} // namespace Log \ No newline at end of file
+} // namespace Log