Set a proper thread name

This commit is contained in:
Maschell 2022-01-30 17:44:17 +01:00
parent 1d029f6274
commit b8b8c0a14c

View File

@ -36,8 +36,10 @@ public:
//! allocate the stack
pThreadStack = (uint8_t *) memalign(0x20, iStackSize);
//! create the thread
if (pThread && pThreadStack)
if (pThread && pThreadStack) {
OSCreateThread(pThread, &CThread::threadCallback, 1, (char *) this, pThreadStack + iStackSize, iStackSize, iPriority, iAttributes);
OSSetThreadName(pThread, "Wiiload Thread");
}
}
//! destructor