diff options
| author | 2018-10-08 23:28:54 +0200 | |
|---|---|---|
| committer | 2019-02-15 22:14:54 +0100 | |
| commit | 2195f10d152a52e01ccab0a6528f8758752d66a9 (patch) | |
| tree | 6bf2fb03d0df8224a44259eed4a773bc67fe4b45 /src/common/logging/backend.cpp | |
| parent | threadsafe_queue: Add WaitIfEmpty and use it in logging (diff) | |
| download | yuzu-2195f10d152a52e01ccab0a6528f8758752d66a9.tar.gz yuzu-2195f10d152a52e01ccab0a6528f8758752d66a9.tar.xz yuzu-2195f10d152a52e01ccab0a6528f8758752d66a9.zip | |
Adressed review comments
Diffstat (limited to 'src/common/logging/backend.cpp')
| -rw-r--r-- | src/common/logging/backend.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 276e49f86..b369f199f 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp | |||
| @@ -83,7 +83,8 @@ private: | |||
| 83 | backend->Write(e); | 83 | backend->Write(e); |
| 84 | } | 84 | } |
| 85 | }; | 85 | }; |
| 86 | while (message_queue.PopWait(entry)) { | 86 | while (true) { |
| 87 | entry = message_queue.PopWait(); | ||
| 87 | if (entry.final_entry) { | 88 | if (entry.final_entry) { |
| 88 | break; | 89 | break; |
| 89 | } | 90 | } |