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

@ -85,7 +85,7 @@ struct CompressAndDumpState_args
static std::mutex s_save_thread_mutex;
// Queue for compressing and writing savestates to disk.
static Common::WorkQueueThread<CompressAndDumpState_args> s_save_thread;
static Common::WorkQueueThread<CompressAndDumpState_args> s_save_thread("Savestate Worker");
// Keeps track of savestate writes that are currently happening, so we don't load a state while
// another one is still saving. This is particularly important so if you save to a slot and then