diff options
| author | Mai M <mathew1800@gmail.com> | 2022-03-10 08:07:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-10 08:07:41 -0500 |
| commit | d64f8666000c80bee9996f98e0527c27b790288d (patch) | |
| tree | 5c2ba970cab18804aba18129be23a15b003f4568 /src/common/logging/backend.cpp | |
| parent | c5bb4965653253884c71e8d58eec9dacbc8c8510 (diff) | |
| parent | a993e93abdc069d9e5dbe77c5959ae20508e3a94 (diff) | |
Merge pull request #7999 from merryhime/fix-7992
backend: Ensure backend_thread is destructed before message_queue
Diffstat (limited to 'src/common/logging/backend.cpp')
| -rw-r--r-- | src/common/logging/backend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index f1c9ed6c4d..4a2462ec4a 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 |
