backend: Ensure backend_thread is destructed before message_queue

Ensures that stop_token signals that stop has been requested before destruction of conditional_variable
This commit is contained in:
Merry 2023-06-24 11:44:13 +03:00 committed by GPUCode
parent ae6fda8638
commit e112421db8
1 changed files with 1 additions and 1 deletions

View File

@ -397,9 +397,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;
#ifdef CITRA_LINUX_GCC_BACKTRACE
std::atomic_int received_signal{0};