mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-22 21:09:52 +00:00
Be more consistent about thread naming
This commit is contained in:
parent
e19ad1f359
commit
758faac445
@ -473,7 +473,7 @@ static int mainInternal(QApplication &a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainUI::EmuThreadFunc() {
|
void MainUI::EmuThreadFunc() {
|
||||||
SetCurrentThreadName("Emu");
|
SetCurrentThreadName("EmuThread");
|
||||||
|
|
||||||
// There's no real requirement that NativeInit happen on this thread, though it can't hurt...
|
// There's no real requirement that NativeInit happen on this thread, though it can't hurt...
|
||||||
// We just call the update/render loop here. NativeInitGraphics should be here though.
|
// We just call the update/render loop here. NativeInitGraphics should be here though.
|
||||||
|
@ -686,7 +686,7 @@ static std::thread emuThread;
|
|||||||
static std::atomic<int> emuThreadState((int)EmuThreadState::DISABLED);
|
static std::atomic<int> emuThreadState((int)EmuThreadState::DISABLED);
|
||||||
|
|
||||||
static void EmuThreadFunc(GraphicsContext *graphicsContext) {
|
static void EmuThreadFunc(GraphicsContext *graphicsContext) {
|
||||||
SetCurrentThreadName("Emu");
|
SetCurrentThreadName("EmuThread");
|
||||||
|
|
||||||
// There's no real requirement that NativeInit happen on this thread.
|
// There's no real requirement that NativeInit happen on this thread.
|
||||||
// We just call the update/render loop here.
|
// We just call the update/render loop here.
|
||||||
|
@ -76,7 +76,7 @@ bool MainThread_Ready() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void EmuThreadFunc(GraphicsContext *graphicsContext) {
|
static void EmuThreadFunc(GraphicsContext *graphicsContext) {
|
||||||
SetCurrentThreadName("Emu");
|
SetCurrentThreadName("EmuThread");
|
||||||
|
|
||||||
// There's no real requirement that NativeInit happen on this thread.
|
// There's no real requirement that NativeInit happen on this thread.
|
||||||
// We just call the update/render loop here.
|
// We just call the update/render loop here.
|
||||||
@ -152,7 +152,7 @@ bool CreateGraphicsBackend(std::string *error_message, GraphicsContext **ctx) {
|
|||||||
|
|
||||||
void MainThreadFunc() {
|
void MainThreadFunc() {
|
||||||
// We'll start up a separate thread we'll call Emu
|
// We'll start up a separate thread we'll call Emu
|
||||||
SetCurrentThreadName(useEmuThread ? "Render" : "Emu");
|
SetCurrentThreadName(useEmuThread ? "RenderThread" : "EmuThread");
|
||||||
|
|
||||||
SetConsolePosition();
|
SetConsolePosition();
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ void MainThreadFunc() {
|
|||||||
} else if (useEmuThread) {
|
} else if (useEmuThread) {
|
||||||
// We must've failed over from OpenGL, flip the emu thread off.
|
// We must've failed over from OpenGL, flip the emu thread off.
|
||||||
useEmuThread = false;
|
useEmuThread = false;
|
||||||
SetCurrentThreadName("Emu");
|
SetCurrentThreadName("EmuThread");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_Config.sFailedGPUBackends.find("ALL") != std::string::npos) {
|
if (g_Config.sFailedGPUBackends.find("ALL") != std::string::npos) {
|
||||||
|
@ -1367,7 +1367,7 @@ namespace Libretro
|
|||||||
|
|
||||||
static void EmuThreadFunc()
|
static void EmuThreadFunc()
|
||||||
{
|
{
|
||||||
SetCurrentThreadName("Emu");
|
SetCurrentThreadName("EmuThread");
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user