mirror of
https://github.com/decaf-emu/decaf-emu.git
synced 2026-10-12 00:28:16 +00:00
Added names to threads to assist when debugging.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <algorithm>
|
||||
#include "platform.h"
|
||||
#include "interpreter.h"
|
||||
#include "log.h"
|
||||
#include "processor.h"
|
||||
@@ -34,9 +35,13 @@ Processor::start()
|
||||
|
||||
for (auto core : mCores) {
|
||||
core->thread = std::thread(std::bind(&Processor::coreEntryPoint, this, core));
|
||||
|
||||
static const std::string coreNames[] = { "Core #0", "Core #1", "Core #2" };
|
||||
platform::set_thread_name(&core->thread, coreNames[core->id]);
|
||||
}
|
||||
|
||||
mTimerThread = std::thread(std::bind(&Processor::timerEntryPoint, this));
|
||||
platform::set_thread_name(&mTimerThread, "Timer Thread");
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user