WorkQueueThread: Implement thread name

Otherwise we will end up with a dozen threads named "WorkQueueThread"
This commit is contained in:
Scott Mansell
2023-02-04 11:31:49 +13:00
parent 94a0c50bf8
commit acdb0c5be1
7 changed files with 14 additions and 9 deletions

View File

@ -87,7 +87,7 @@ private:
// game path -> directories that track it
QMap<QString, QSet<QString>> m_tracked_files;
QVector<QString> m_tracked_paths;
Common::WorkQueueThread<Command> m_load_thread;
Common::WorkQueueThread<Command> m_load_thread{"GameList Tracker"};
UICommon::GameFileCache m_cache;
Common::Event m_cache_loaded_event;
Common::Event m_initial_games_emitted_event;