mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
LogWidget: Do not use QueueOnObject to construct log queue,
instead store a std::string constructed from string_view and convert to QString just before appending
This commit is contained in:
parent
e746d95d01
commit
b088fc37d5
2 changed files with 60 additions and 49 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <mutex>
|
||||
#include <queue>
|
||||
#include <string>
|
||||
|
||||
#include "Common/Logging/LogManager.h"
|
||||
|
||||
|
@ -46,6 +47,8 @@ private:
|
|||
|
||||
QTimer* m_timer;
|
||||
|
||||
using LogEntry = std::pair<std::string, LogTypes::LOG_LEVELS>;
|
||||
|
||||
std::mutex m_log_mutex;
|
||||
std::queue<QString> m_log_queue;
|
||||
std::queue<LogEntry> m_log_queue;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue