summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2022-03-10 08:07:41 -0500
committerGitHub <noreply@github.com>2022-03-10 08:07:41 -0500
commite200161982dcbafc4bdd8da86a721c56384c6f40 (patch)
tree5c2ba970cab18804aba18129be23a15b003f4568
parent52f8f004344831dcfaf8ee72e737046165ea692b (diff)
parent22f50c6bc1e5b62e3e334f04b49c0b00cb2fea9c (diff)
Merge pull request #7999 from merryhime/fix-7992
backend: Ensure backend_thread is destructed before message_queue
-rw-r--r--src/common/logging/backend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index f1c9ed6c4..4a2462ec4 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -276,9 +276,9 @@ private:
ColorConsoleBackend color_console_backend{};
FileBackend file_backend;
- std::jthread backend_thread;
MPSCQueue<Entry, true> message_queue{};
std::chrono::steady_clock::time_point time_origin{std::chrono::steady_clock::now()};
+ std::jthread backend_thread;
};
} // namespace